mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 01:27:27 -04:00
Add Nginx Cockpit Awareness
This commit is contained in:
13
docker/nginx/dist/conf/tpotweb.conf
vendored
13
docker/nginx/dist/conf/tpotweb.conf
vendored
@ -90,16 +90,23 @@ server {
|
||||
auth_basic "closed site";
|
||||
auth_basic_user_file /etc/nginx/nginxpasswd;
|
||||
|
||||
|
||||
#############################
|
||||
### T-Pot Landing Page & Apps
|
||||
#############################
|
||||
|
||||
location / {
|
||||
index index.html;
|
||||
set_by_lua_block $index_file {
|
||||
local cockpit = os.getenv("COCKPIT")
|
||||
if cockpit == "false" then
|
||||
return "index_light.html"
|
||||
else
|
||||
return "index.html"
|
||||
end
|
||||
}
|
||||
auth_basic "closed site";
|
||||
auth_basic_user_file /etc/nginx/nginxpasswd;
|
||||
try_files $uri $uri/ /index.html;
|
||||
index $index_file;
|
||||
try_files $uri $uri/ /$index_file;
|
||||
}
|
||||
|
||||
location /elasticvue {
|
||||
|
Reference in New Issue
Block a user