Add public logs folder
This commit is contained in:
parent
866456bc5c
commit
6b6ce258ed
|
@ -22,7 +22,7 @@ RUN echo "daemon off;" >> /etc/nginx/nginx.conf
|
||||||
COPY default /etc/nginx/sites-available/default
|
COPY default /etc/nginx/sites-available/default
|
||||||
|
|
||||||
# Install pisg stuff for log generation
|
# Install pisg stuff for log generation
|
||||||
RUN su -c 'mkdir /home/znc/pisg /home/znc/pisg/cache /home/znc/pisg/output' znc
|
RUN su -c 'mkdir /home/znc/pisg /home/znc/pisg/cache /home/znc/pisg/output /home/znc/pisg/output/.pub' znc
|
||||||
COPY pisg.py /home/znc/pisg/
|
COPY pisg.py /home/znc/pisg/
|
||||||
RUN chmod +x /home/znc/pisg/pisg.py
|
RUN chmod +x /home/znc/pisg/pisg.py
|
||||||
|
|
||||||
|
|
|
@ -39,6 +39,8 @@ This container creates [pisg]-style channel statistics ([example]) for any ZNC u
|
||||||
|
|
||||||
The channel information is private, nginx is configured with HTTP basic authentication; the password is prompted for during setup.
|
The channel information is private, nginx is configured with HTTP basic authentication; the password is prompted for during setup.
|
||||||
|
|
||||||
|
Individual channel statistic files can be made public by symlinking each, for example, to /home/znc/pisg/output/.pub/mychannel.html, which is public at http://server-ip/pub/mychannel.html. Directory listing for /pub/ is disabled.
|
||||||
|
|
||||||
TODO
|
TODO
|
||||||
====
|
====
|
||||||
|
|
||||||
|
|
8
default
8
default
|
@ -4,11 +4,15 @@ server {
|
||||||
root /home/znc/pisg/output;
|
root /home/znc/pisg/output;
|
||||||
index index.html index.htm;
|
index index.html index.htm;
|
||||||
server_name localhost;
|
server_name localhost;
|
||||||
auth_basic "Restricted";
|
|
||||||
auth_basic_user_file /etc/nginx/htpasswd;
|
|
||||||
location / {
|
location / {
|
||||||
autoindex on;
|
autoindex on;
|
||||||
try_files $uri $uri/ =404;
|
try_files $uri $uri/ =404;
|
||||||
|
auth_basic "Restricted";
|
||||||
|
auth_basic_user_file /etc/nginx/htpasswd;
|
||||||
|
}
|
||||||
|
location /pub/ {
|
||||||
|
autoindex off;
|
||||||
|
alias /home/znc/pisg/output/.pub/;
|
||||||
}
|
}
|
||||||
location /gfx/ {
|
location /gfx/ {
|
||||||
alias /usr/share/pisg/gfx/;
|
alias /usr/share/pisg/gfx/;
|
||||||
|
|
Loading…
Reference in New Issue