add wiki.tenforward.social configs
This commit is contained in:
parent
b7f3e9b2c2
commit
c074a6bb0a
@ -248,6 +248,38 @@
|
|||||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||||
fastcgi_pass php;
|
fastcgi_pass php;
|
||||||
}
|
}
|
||||||
|
wiki.tenforward.social.http:
|
||||||
|
- listen *:80
|
||||||
|
- listen [::]:80
|
||||||
|
- server_name wiki.tenforward.social
|
||||||
|
- return 301 "https://$host$request_uri"
|
||||||
|
wiki.tenforward.social.https:
|
||||||
|
- listen *:443 ssl http2
|
||||||
|
- listen [::]:443 ssl http2
|
||||||
|
- server_name wiki.tenforward.social
|
||||||
|
- root "/srv/www/wiki.tenforward.social"
|
||||||
|
- index index.php
|
||||||
|
- access_log "/var/log/nginx/wiki.tenforward.social.access.log"
|
||||||
|
- error_log "/var/log/nginx/wiki.tenforward.social.error.log"
|
||||||
|
- ssl_certificate "/etc/ssl/letsencrypt/wiki.tenforward.social.crt"
|
||||||
|
- ssl_certificate_key "/etc/ssl/letsencrypt/wiki.tenforward.social.pem"
|
||||||
|
- ssl_stapling on
|
||||||
|
- resolver [::1] valid=300s
|
||||||
|
- add_header Strict-Transport-Security max-age=31536000
|
||||||
|
- location ~ /(data|conf|bin|inc)/ {
|
||||||
|
deny all;
|
||||||
|
}
|
||||||
|
- location / {
|
||||||
|
try_files $uri $uri/ /index.php?$args;
|
||||||
|
}
|
||||||
|
- location ~ \.php$ {
|
||||||
|
try_files $uri =404;
|
||||||
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||||
|
include fastcgi_params;
|
||||||
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||||
|
fastcgi_pass php;
|
||||||
|
fastcgi_index index.php;
|
||||||
|
}
|
||||||
nginx_configs:
|
nginx_configs:
|
||||||
gzip:
|
gzip:
|
||||||
- gzip on
|
- gzip on
|
||||||
|
Loading…
Reference in New Issue
Block a user