Skip to content

Commit

Permalink
Cleanup default site conf (#42)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
nemchik and aptalca authored Mar 6, 2024
1 parent 1129ecd commit eee5d9d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions readme-vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ app_setup_block: |
# changelog
changelogs:
- { date: "06.03.24:", desc: "Existing users should update: site-confs/default.conf - Cleanup default site conf." }
- { date: "23.12.23:", desc: "Rebase to Alpine 3.19 with php 8.3."}
- { date: "25.05.23:", desc: "Rebase to Alpine 3.18, deprecate armhf." }
- { date: "06.05.23:", desc: "Add php-ldap for LDAP support." }
Expand Down
9 changes: 7 additions & 2 deletions root/defaults/nginx/site-confs/default.conf.sample
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Version 2023/05/16 - Changelog: https://github.com/linuxserver/docker-grav/commits/main/root/defaults/nginx/site-confs/default.conf.sample
## Version 2024/03/06 - Changelog: https://github.com/linuxserver/docker-grav/commits/main/root/defaults/nginx/site-confs/default.conf.sample

server {
listen 80 default_server;
Expand All @@ -19,7 +19,7 @@ server {
#auth_basic "Restricted";
#auth_basic_user_file /config/nginx/.htpasswd;

try_files $uri $uri/ /index.php$is_args$args;
try_files $uri $uri/ /index.html /index.htm /index.php$is_args$args;
}

## https://github.com/getgrav/grav/blob/develop/webserver-configs/nginx.conf
Expand Down Expand Up @@ -65,7 +65,12 @@ server {
## End - Caching

location ~ ^(.+\.php)(.*)$ {
# enable the next two lines for http auth
#auth_basic "Restricted";
#auth_basic_user_file /config/nginx/.htpasswd;

fastcgi_split_path_info ^(.+\.php)(.*)$;
if (!-f $document_root$fastcgi_script_name) { return 404; }
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
Expand Down

0 comments on commit eee5d9d

Please sign in to comment.