Initial commit: Arr Summary source from server
This commit is contained in:
commit
c1e30bc8f0
37 changed files with 11661 additions and 0 deletions
68
nginx/greendale-subdomain.conf
Normal file
68
nginx/greendale-subdomain.conf
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
# ─────────────────────────────────────────────────────────────
|
||||
# Greendale Media Centre — Nginx Reverse Proxy Config
|
||||
# SUBDOMAIN variant: https://media.yourdomain.com
|
||||
#
|
||||
# 1. Copy this file to /etc/nginx/conf.d/ (or your Nginx proxy
|
||||
# manager's custom config directory) on your Unraid server.
|
||||
# 2. Replace "media.yourdomain.com" with your actual domain.
|
||||
# 3. Replace "YOUR_UNRAID_IP" with your Unraid server's LAN IP.
|
||||
# 4. Replace "5055" if you changed HOST_PORT in .env.
|
||||
# 5. SSL is handled by Nginx Proxy Manager (recommended on Unraid)
|
||||
# — point it at this container on port 5055.
|
||||
# ─────────────────────────────────────────────────────────────
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name media.yourdomain.com;
|
||||
|
||||
# Redirect all HTTP → HTTPS
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
server_name media.yourdomain.com;
|
||||
|
||||
# ── SSL certificates (managed by NPM or Certbot) ──
|
||||
# ssl_certificate /etc/letsencrypt/live/media.yourdomain.com/fullchain.pem;
|
||||
# ssl_certificate_key /etc/letsencrypt/live/media.yourdomain.com/privkey.pem;
|
||||
|
||||
# ── Security headers ──
|
||||
add_header X-Frame-Options "SAMEORIGIN" always;
|
||||
add_header X-Content-Type-Options "nosniff" always;
|
||||
add_header X-XSS-Protection "1; mode=block" always;
|
||||
add_header Referrer-Policy "strict-origin" always;
|
||||
add_header Strict-Transport-Security "max-age=31536000" always;
|
||||
|
||||
# ── Proxy to Flask container ──
|
||||
location / {
|
||||
proxy_pass http://YOUR_UNRAID_IP:5055;
|
||||
proxy_http_version 1.1;
|
||||
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
|
||||
# WebSocket support (future-proof)
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
|
||||
proxy_read_timeout 90;
|
||||
proxy_connect_timeout 90;
|
||||
proxy_send_timeout 90;
|
||||
|
||||
# Buffer settings for smooth streaming
|
||||
proxy_buffering on;
|
||||
proxy_buffer_size 8k;
|
||||
proxy_buffers 8 8k;
|
||||
}
|
||||
|
||||
# ── Static asset caching ──
|
||||
location ~* \.(css|js|png|jpg|ico|woff2?)$ {
|
||||
proxy_pass http://YOUR_UNRAID_IP:5055;
|
||||
proxy_set_header Host $host;
|
||||
expires 7d;
|
||||
add_header Cache-Control "public, immutable";
|
||||
}
|
||||
}
|
||||
34
nginx/greendale-subpath.conf
Normal file
34
nginx/greendale-subpath.conf
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
# ─────────────────────────────────────────────────────────────
|
||||
# Greendale Media Centre — Nginx Reverse Proxy Config
|
||||
# SUBPATH variant: https://yourdomain.com/media/
|
||||
#
|
||||
# Use this if you want to host under a path on an existing domain
|
||||
# instead of a dedicated subdomain.
|
||||
#
|
||||
# NOTE: The Flask app already serves from "/" — Nginx strips the
|
||||
# /media prefix and the app sees clean paths.
|
||||
# ─────────────────────────────────────────────────────────────
|
||||
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
server_name yourdomain.com;
|
||||
|
||||
# ... your existing SSL/other config above ...
|
||||
|
||||
# ── Proxy to Greendale Media Centre ──
|
||||
location /media/ {
|
||||
proxy_pass http://YOUR_UNRAID_IP:5055/;
|
||||
proxy_http_version 1.1;
|
||||
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
|
||||
proxy_redirect off;
|
||||
proxy_read_timeout 90;
|
||||
|
||||
# Required so cookies set at "/" work on the /media/ sub-path
|
||||
proxy_cookie_path / /media/;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue