Kapisi/roles/WebServer/files/conf.d/Yggdrasil/password.conf

47 lines
1.2 KiB
Plaintext
Raw Permalink Normal View History

2020-10-08 16:33:19 -05:00
server {
2022-07-02 10:24:10 -05:00
listen 443 ssl http2;
server_name password.aninix.net;
2020-10-08 16:33:19 -05:00
include conf/sec.conf;
include conf/default.csp.conf;
include conf/letsencrypt.conf;
2020-10-08 16:33:19 -05:00
2022-12-18 22:21:39 -06:00
location / {
root /usr/share/webapps/self-service-password/htdocs/;
# https://ltb-project.org/documentation/self-service-password/1config_nginx
2022-12-18 22:21:39 -06:00
index index.php index.html index.htm;
2022-12-18 22:21:39 -06:00
# Disable sendfile as per https://docs.vagrantup.com/v2/synced-folders/virtualbox.html
sendfile off;
2022-12-18 22:21:39 -06:00
gzip on;
gzip_comp_level 6;
gzip_min_length 1000;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript text/x-js;
gzip_vary on;
gzip_proxied any;
gzip_disable "MSIE [1-6]\.(?!.*SV1)";
2022-12-18 22:21:39 -06:00
# Add stdout logging
2022-12-18 22:21:39 -06:00
#error_log /dev/stdout warn;
#access_log /dev/stdout info;
include conf.d/fastcgi.config;
2022-12-18 22:21:39 -06:00
}
2022-07-02 10:24:10 -05:00
# deny access to . files, for security
#
location ~ /\.\. {
log_not_found off;
deny all;
2020-10-08 16:33:19 -05:00
}
2022-07-02 10:24:10 -05:00
location ~ /scripts {
log_not_found off;
deny all;
2022-07-02 10:24:10 -05:00
}
2020-10-08 16:33:19 -05:00
}