Backup before adding SMTP stream proxy configuration

This commit is contained in:
root
2026-01-23 11:02:06 +01:00
parent 62d24a96af
commit ef16045880
44 changed files with 2516 additions and 319 deletions

View File

@@ -1,7 +1,13 @@
add_header X-Robots-Tag "noindex, nofollow, nosnippet, noarchive";
proxy_cache_path /tmp/plex/ levels=1:2 keys_zone=my_cache_plex:10m max_size=10g
inactive=60m use_temp_path=off;
# Upstream with keepalive for Plex
upstream plex_backend {
server 10.0.0.48:32400;
keepalive 32;
keepalive_requests 100;
keepalive_timeout 60s;
}
server{
listen 80;
server_name plex.egonetix.de;
@@ -24,25 +30,34 @@ server {
access_log /var/log/nginx/plex-access_log;
error_log /var/log/nginx/plex-error_log;
# Gzip for text content only (not media)
gzip on;
gzip_vary on;
gzip_proxied any;
gzip_comp_level 5;
gzip_types text/plain text/css text/xml text/javascript
application/json application/javascript application/xml+rss;
gzip_min_length 1000;
set $upstream 10.0.0.48;
#set $upstream 172.20.20.6;
# Don't cache media streams
location / {
proxy_cache my_cache_plex;
proxy_cache_revalidate on;
proxy_cache_min_uses 3;
proxy_cache_use_stale error timeout updating http_500 http_502 http_503 http_504;
proxy_cache_lock on;
proxy_pass_header Authorization;
proxy_pass https://$upstream:32400;
proxy_pass https://plex_backend;
proxy_ssl_server_name on;
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_http_version 1.1;
proxy_set_header Connection "";
# Optimized for media streaming
proxy_buffering off;
proxy_cache off;
client_max_body_size 0;
proxy_read_timeout 36000s;
proxy_redirect off;