2016-05-26 20:14:27 -07:00
|
|
|
limit_req_zone $binary_remote_addr zone=one:10m rate=5r/s;
|
2015-02-15 11:21:42 -08:00
|
|
|
|
2015-01-23 23:37:24 -08:00
|
|
|
server {
|
|
|
|
listen 80 default_server;
|
|
|
|
listen [::]:80 default_server ipv6only=on;
|
2016-05-26 20:14:27 -07:00
|
|
|
root /srv/znc/caches/pisg-web;
|
2015-01-23 23:37:24 -08:00
|
|
|
index index.html index.htm;
|
|
|
|
server_name localhost;
|
|
|
|
location / {
|
2015-02-15 11:21:42 -08:00
|
|
|
limit_req zone=one;
|
2015-01-23 23:37:24 -08:00
|
|
|
autoindex on;
|
|
|
|
try_files $uri $uri/ =404;
|
2015-02-15 10:25:32 -08:00
|
|
|
auth_basic "Restricted";
|
2016-05-26 20:14:27 -07:00
|
|
|
auth_basic_user_file /srv/znc/caches/nginx/htpasswd;
|
2015-02-15 10:25:32 -08:00
|
|
|
}
|
|
|
|
location /pub/ {
|
|
|
|
autoindex off;
|
2016-05-26 20:14:27 -07:00
|
|
|
alias /srv/znc/caches/pisg-web/pub/;
|
2015-01-23 23:37:24 -08:00
|
|
|
}
|
|
|
|
location /gfx/ {
|
|
|
|
alias /usr/share/pisg/gfx/;
|
|
|
|
}
|
|
|
|
}
|