Fix nginx config
This commit is contained in:
parent
bd263bebaa
commit
0f899f1020
@ -49,7 +49,7 @@ sudo htpasswd -c /etc/apache2/.htpasswd [USER]
|
|||||||
Additional users can be added by omitting the `-c` switch
|
Additional users can be added by omitting the `-c` switch
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
sudo htpasswd -c /etc/apache2/.htpasswd [USER]
|
sudo htpasswd /etc/apache2/.htpasswd [USER]
|
||||||
```
|
```
|
||||||
|
|
||||||
Nginx configuration file
|
Nginx configuration file
|
||||||
@ -64,6 +64,8 @@ server {
|
|||||||
add_header X-Content-Type-Options "nosniff";
|
add_header X-Content-Type-Options "nosniff";
|
||||||
#add_header Strict-Transport-Security "max-age=31536000; includeSubDomains";
|
#add_header Strict-Transport-Security "max-age=31536000; includeSubDomains";
|
||||||
|
|
||||||
|
client_max_body_size 40G;
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
# Proxy main traffic
|
# Proxy main traffic
|
||||||
proxy_pass http://127.0.0.1:8888;
|
proxy_pass http://127.0.0.1:8888;
|
||||||
@ -80,16 +82,15 @@ server {
|
|||||||
proxy_set_header Connection "Upgrade";
|
proxy_set_header Connection "Upgrade";
|
||||||
|
|
||||||
# Basic Authentication
|
# Basic Authentication
|
||||||
auth_basic "Unmanic";
|
auth_basic "Unmanic";
|
||||||
auth_basic_user_file /etc/apache2/.htpasswd;
|
auth_basic_user_file /etc/apache2/.htpasswd;
|
||||||
}
|
}
|
||||||
|
|
||||||
listen *:80;
|
listen *:80;
|
||||||
|
|
||||||
#listen 443 ssl http2;
|
#listen *:443 ssl http2;
|
||||||
#listen [::]:443 ssl http2;
|
#ssl_certificate_key /etc/certs/unmanic.ovh1app1.x9w.ch/cert.key;
|
||||||
#ssl_certificate_key /etc/acme-sh/unmanic.ovh1app1.x9w.ch/key.pem;
|
#ssl_certificate /etc/certs/unmanic.ovh1app1.x9w.ch/cert.crt;
|
||||||
#ssl_certificate /etc/acme-sh/unmanic.ovh1app1.x9w.ch/cert.pem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#server {
|
#server {
|
||||||
@ -102,4 +103,5 @@ server {
|
|||||||
# server_name unmanic.ovh1app1.x9w.ch;
|
# server_name unmanic.ovh1app1.x9w.ch;
|
||||||
# return 404;
|
# return 404;
|
||||||
#}
|
#}
|
||||||
|
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user