forked from plume/documentation
fix some errors in nginx config
This commit is contained in:
parent
676d01f614
commit
cd09f2d25a
1 changed files with 3 additions and 9 deletions
|
@ -24,9 +24,8 @@ server {
|
|||
access_log /var/log/nginx/access.log;
|
||||
root /home/plume/Plume/ ;
|
||||
|
||||
SSLCertificateFile /etc/letsencrypt/live/DOMAIN_NAME/cert.pem
|
||||
SSLCertificateKeyFile /etc/letsencrypt/live/DOMAIN_NAME/privkey.pem
|
||||
SSLCertificateChainFile /etc/letsencrypt/live/DOMAIN_NAME/chain.pem
|
||||
ssl_certificate etc/letsencrypt/live/DOMAIN_NAME/chain.pem
|
||||
ssl_certificate_key /etc/letsencrypt/live/DOMAIN_NAME/privkey.pem
|
||||
|
||||
# for ssl conf: https://cipherli.st/
|
||||
ssl_protocols TLSv1.2 TLSv1.3;# Requires nginx >= 1.13.0 else use TLSv1.2
|
||||
|
@ -47,11 +46,6 @@ server {
|
|||
add_header X-XSS-Protection "1; mode=block";
|
||||
add_header Content-Security-Policy "default-src 'self' 'unsafe-inline'; frame-ancestors 'self'; frame-src https:";
|
||||
|
||||
location ~* \.(jpg|jpeg|png|gif|ico|js|pdf|wasm)$ {
|
||||
add_header Cache-Control "public";
|
||||
expires 7d;
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_pass http://localhost:7878/;
|
||||
proxy_set_header Host $http_host;
|
||||
|
@ -63,4 +57,4 @@ server {
|
|||
}
|
||||
```
|
||||
|
||||
Restart Nginx, and your Plume instance should be accessible!
|
||||
Restart Nginx, and your Plume instance should be accessible!
|
||||
|
|
Loading…
Reference in a new issue