Skip to content

Commit c6474f0

Browse files
nemchikaptalca
andauthored
Cleanup default site conf (#442)
* Cleanup default site conf Signed-off-by: Eric Nemchik <[email protected]> * update date --------- Signed-off-by: Eric Nemchik <[email protected]> Co-authored-by: aptalca <[email protected]>
1 parent b6a196b commit c6474f0

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

readme-vars.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ app_setup_block: |
168168
169169
# changelog
170170
changelogs:
171+
- { date: "06.03.24:", desc: "[Existing users should update:](https://github.com/linuxserver/docker-swag/blob/master/README.md#updating-configs) site-confs/default.conf - Cleanup default site conf." }
171172
- { date: "04.03.24:", desc: "Remove `stream.conf` inside the container to allow users to include their own block in `nginx.conf`." }
172173
- { date: "23.01.24:", desc: "Rebase to Alpine 3.19 with php 8.3, add root periodic crontabs for logrotate." }
173174
- { date: "01.01.24:", desc: "Add GleSYS DNS plugin." }

root/defaults/nginx/site-confs/default.conf.sample

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Version 2023/11/27 - Changelog: https://github.com/linuxserver/docker-swag/commits/master/root/defaults/nginx/site-confs/default.conf.sample
1+
## Version 2024/03/06 - Changelog: https://github.com/linuxserver/docker-swag/commits/master/root/defaults/nginx/site-confs/default.conf.sample
22

33
# redirect all traffic to https
44
server {
@@ -48,7 +48,7 @@ server {
4848
# enable for Authentik (requires authentik-server.conf in the server block)
4949
#include /config/nginx/authentik-location.conf;
5050

51-
try_files $uri $uri/ /index.html /index.php$is_args$args;
51+
try_files $uri $uri/ /index.html /index.htm /index.php$is_args$args;
5252
}
5353

5454
location ~ ^(.+\.php)(.*)$ {
@@ -65,8 +65,8 @@ server {
6565
# enable for Authentik (requires authentik-server.conf in the server block)
6666
#include /config/nginx/authentik-location.conf;
6767

68-
try_files $fastcgi_script_name =404;
6968
fastcgi_split_path_info ^(.+\.php)(.*)$;
69+
if (!-f $document_root$fastcgi_script_name) { return 404; }
7070
fastcgi_pass 127.0.0.1:9000;
7171
fastcgi_index index.php;
7272
include /etc/nginx/fastcgi_params;

0 commit comments

Comments
 (0)