Some end to end flow working

This commit is contained in:
Dillon Shook
2024-10-22 22:56:06 -04:00
parent f6ce2d8c84
commit e88be84fda
4 changed files with 66 additions and 50 deletions

View File

@@ -32,20 +32,21 @@
location /goaccess {
alias <%-captain.logAccessPath%>;
autoindex on;
autoindex_format json;
# This can be improved by adding authentication as well.
# CIDR Range IPs:
allow 172.16.0.0/12;
allow 10.0.0.0/8;
allow 192.168.0.0/16;
# allow 172.16.0.0/12;
# allow 10.0.0.0/8;
# allow 192.168.0.0/16;
deny all;
# deny all;
}
<%
}
%>
location / {
root <%-captain.defaultHtmlDir%>;
index index.html index.htm;
@@ -137,6 +138,28 @@
location /.well-known/captain-identifier {
root <%-captain.staticWebRoot%>;
}
<%
if (captain.logAccessPath) {
%>
location /goaccess {
alias <%-captain.logAccessPath%>;
autoindex on;
autoindex_format json;
# This can be improved by adding authentication as well.
# CIDR Range IPs:
# allow 172.16.0.0/12;
# allow 10.0.0.0/8;
# allow 192.168.0.0/16;
# deny all;
}
<%
}
%>
}