mirror of
https://github.com/linuxserver/docker-xbackbone.git
synced 2026-02-14 08:59:31 +08:00
commit
7870ba360c
@ -1,4 +1,4 @@
|
||||
## Version 2022/08/20 - Changelog: https://github.com/linuxserver/docker-xbackbone/commits/main/root/defaults/nginx/site-confs/default.conf.sample
|
||||
## Version 2022/08/23 - Changelog: https://github.com/linuxserver/docker-xbackbone/commits/main/root/defaults/nginx/site-confs/default.conf.sample
|
||||
|
||||
server {
|
||||
listen 80 default_server;
|
||||
@ -21,7 +21,7 @@ server {
|
||||
#auth_basic "Restricted";
|
||||
#auth_basic_user_file /config/nginx/.htpasswd;
|
||||
|
||||
try_files $uri $uri/ /index.html /index.php?$args =404;
|
||||
try_files $uri $uri/ /index.html /index.php?$args;
|
||||
}
|
||||
|
||||
location ~ ^(.+\.php)(.*)$ {
|
||||
|
||||
@ -8,6 +8,11 @@ if [ ! -e "/config/www/xbackbone/index.php" ]; then
|
||||
cp -R /app/xbackbone/* /config/www/xbackbone
|
||||
fi
|
||||
|
||||
# fix breaking location change from PR5
|
||||
if [[ $(grep -c "/index.php?\$args =404;" /config/nginx/site-confs/default.conf) -eq 0 ]]; then
|
||||
sed -i $'s|/index.php?\$args =404;|/index.php?\$args;|g' /config/nginx/site-confs/default.conf
|
||||
fi
|
||||
|
||||
# permissions
|
||||
chown -R abc:abc \
|
||||
/config
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user