docker-znc/default

24 lines
586 B
Plaintext
Raw Normal View History

2015-02-15 11:21:42 -08:00
limit_req_zone $binary_remote_addr zone=one:10m rate=1r/s;
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
2015-02-15 10:25:32 -08:00
root /home/znc/pisg/output;
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";
auth_basic_user_file /etc/nginx/htpasswd;
}
location /pub/ {
autoindex off;
alias /home/znc/pisg/output/.pub/;
}
location /gfx/ {
alias /usr/share/pisg/gfx/;
}
}