modify landing path

This commit is contained in:
Darren 2024-12-21 12:08:11 +08:00 committed by GitHub
parent 967d81ffdf
commit 1416a1297c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 1 deletions

View File

@ -23,7 +23,7 @@ server {
} }
location / { location / {
root /etc/websoft9/landing; root /data/nginx/default_www/landing;
index index.html index index.html
# Proxy! # Proxy!
include conf.d/include/proxy.conf; include conf.d/include/proxy.conf;

View File

@ -8,6 +8,13 @@ if [ ! -d /data/nginx/default_host ]; then mkdir -p /data/nginx/default_host; fi
cp -f /etc/websoft9/initproxy.conf /data/nginx/default_host/initproxy.conf cp -f /etc/websoft9/initproxy.conf /data/nginx/default_host/initproxy.conf
[ -f /etc/websoft9/initproxy.conf ] && rm -f /data/nginx/proxy_host/initproxy.conf [ -f /etc/websoft9/initproxy.conf ] && rm -f /data/nginx/proxy_host/initproxy.conf
# Deploy Websoft9 landing pages
if [ ! -d /data/nginx/default_www/landing ]; then
mkdir -p /data/nginx/default_www/
cp -r /etc/websoft9/landing /data/nginx/default_www/
else
echo "/data/nginx/default_www/landing already exists."
fi
# If credential file then create it and init credential for NPM # If credential file then create it and init credential for NPM
# Reload NPM docker image Environments # Reload NPM docker image Environments