ZNC in a container
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
602 B

limit_req_zone $binary_remote_addr zone=one:10m rate=5r/s;
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
root /srv/znc/caches/pisg-web;
index index.html index.htm;
server_name localhost;
location / {
limit_req zone=one;
autoindex on;
try_files $uri $uri/ =404;
auth_basic "Restricted";
auth_basic_user_file /srv/znc/caches/nginx/htpasswd;
location /pub/ {
autoindex off;
alias /srv/znc/caches/pisg-web/pub/;
location /gfx/ {
alias /usr/share/pisg/gfx/;