mirror of
https://github.com/caprover/caprover
synced 2025-10-30 10:07:01 +00:00
Some end to end flow working
This commit is contained in:
@@ -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;
|
||||
}
|
||||
<%
|
||||
}
|
||||
%>
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user