From 0f899f1020564fb151df654fbf29718c7064d4df Mon Sep 17 00:00:00 2001 From: RealStickman Date: Wed, 7 Jun 2023 21:29:12 +0200 Subject: [PATCH] Fix nginx config --- pages/02.linux/unmanic/default.en.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pages/02.linux/unmanic/default.en.md b/pages/02.linux/unmanic/default.en.md index 99c3cf4..4063252 100644 --- a/pages/02.linux/unmanic/default.en.md +++ b/pages/02.linux/unmanic/default.en.md @@ -49,7 +49,7 @@ sudo htpasswd -c /etc/apache2/.htpasswd [USER] Additional users can be added by omitting the `-c` switch ```sh -sudo htpasswd -c /etc/apache2/.htpasswd [USER] +sudo htpasswd /etc/apache2/.htpasswd [USER] ``` Nginx configuration file @@ -64,6 +64,8 @@ server { add_header X-Content-Type-Options "nosniff"; #add_header Strict-Transport-Security "max-age=31536000; includeSubDomains"; + client_max_body_size 40G; + location / { # Proxy main traffic proxy_pass http://127.0.0.1:8888; @@ -80,16 +82,15 @@ server { proxy_set_header Connection "Upgrade"; # Basic Authentication - auth_basic "Unmanic"; + auth_basic "Unmanic"; auth_basic_user_file /etc/apache2/.htpasswd; } listen *:80; - #listen 443 ssl http2; - #listen [::]:443 ssl http2; - #ssl_certificate_key /etc/acme-sh/unmanic.ovh1app1.x9w.ch/key.pem; - #ssl_certificate /etc/acme-sh/unmanic.ovh1app1.x9w.ch/cert.pem; + #listen *:443 ssl http2; + #ssl_certificate_key /etc/certs/unmanic.ovh1app1.x9w.ch/cert.key; + #ssl_certificate /etc/certs/unmanic.ovh1app1.x9w.ch/cert.crt; } #server { @@ -102,4 +103,5 @@ server { # server_name unmanic.ovh1app1.x9w.ch; # return 404; #} + ```