Fix nginx config

This commit is contained in:
RealStickman 2023-06-07 21:29:12 +02:00
parent bd263bebaa
commit 0f899f1020

View File

@ -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;
@ -86,10 +88,9 @@ server {
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;
#}
```