docker-znc/default

24 lines
602 B
Plaintext
Raw Normal View History

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
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;
index index.html index.htm;
server_name localhost;
location / {
2015-02-15 11:21:42 -08:00
limit_req zone=one;
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/;
}
location /gfx/ {
alias /usr/share/pisg/gfx/;
}
}