From: nutra-bot Date: Wed, 24 Dec 2025 10:10:57 +0000 (+0000) Subject: update our config from old prod X-Git-Url: https://git.nutra.tk/v2?a=commitdiff_plain;h=1dd5db0c3bc2f682892eee8da115bc0c90468fbf;p=nutratech%2Fvps-root.git update our config from old prod --- diff --git a/etc/nginx/conf.d/default.conf b/etc/nginx/conf.d/default.conf index c661fac..d5f349b 100644 --- a/etc/nginx/conf.d/default.conf +++ b/etc/nginx/conf.d/default.conf @@ -7,32 +7,32 @@ server { } # API -server { - server_name api.nutra.tk; - #listen 80; - listen 443 ssl http2; - # HSTS - add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always; - - # Sanic - location / { - proxy_pass http://127.0.0.1:20000; # API server - # Allow fast streaming HTTP/1.1 pipes (keep-alive, unbuffered) - proxy_http_version 1.1; - proxy_request_buffering off; - proxy_buffering off; - # Proxy forwarding (password configured in app.config.FORWARDED_SECRET) - proxy_set_header forwarded "$proxy_forwarded;secret=\"REDACTED\""; - # Allow websockets and keep-alive (avoid connection: close) - proxy_set_header connection "upgrade"; - proxy_set_header upgrade $http_upgrade; - } - - # default favicon - location /favicon.ico { - alias /var/www/favicon.gif; - } -} +#server { +# server_name api.nutra.tk; +# #listen 80; +# listen 443 ssl http2; +# # HSTS +# add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always; +# +# # Sanic +# location / { +# proxy_pass http://127.0.0.1:20000; # API server +# # Allow fast streaming HTTP/1.1 pipes (keep-alive, unbuffered) +# proxy_http_version 1.1; +# proxy_request_buffering off; +# proxy_buffering off; +# # Proxy forwarding (password configured in app.config.FORWARDED_SECRET) +# proxy_set_header forwarded "$proxy_forwarded;secret=\"REDACTED\""; +# # Allow websockets and keep-alive (avoid connection: close) +# proxy_set_header connection "upgrade"; +# proxy_set_header upgrade $http_upgrade; +# } +# +# # default favicon +# location /favicon.ico { +# alias /var/www/favicon.gif; +# } +#} # UI, blog, favicon, default server server { @@ -44,9 +44,10 @@ server { # HSTS add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always; # OCSP stapling - ssl_stapling on; - ssl_stapling_verify on; - ssl_trusted_certificate /etc/ssl/private/ca-certs.pem; + # no-op as of 2025 (disabled by letsencrypt) + #ssl_stapling on; + #ssl_stapling_verify on; + #ssl_trusted_certificate /etc/ssl/private/ca-certs.pem; client_max_body_size 50m; @@ -59,10 +60,10 @@ server { } # Blog / Sphinx - location /blog { - alias /var/www/blog; - index index.html; - } + #location /blog { + # alias /var/www/blog; + # index index.html; + #} # default favicon location = /favicon.ico {