Skip to content

Commit

Permalink
Merge pull request #3414 from GeotrekCE/fix_package_nginx_conf
Browse files Browse the repository at this point in the history
🐛 Fix default conf nginx for mobile
  • Loading branch information
LePetitTim authored Jan 19, 2023
2 parents f4ce026 + 5f2c40b commit 7623264
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
10 changes: 9 additions & 1 deletion conf/nginx.conf.in
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,15 @@ server {
add_header Access-Control-Allow-Origin "*";
add_header Access-Control-Allow-Methods "GET, OPTIONS";
root /opt/geotrek-admin/var/mobile/;
try_files /$http_accept_language/$1 /nolang/$1 =404;
try_files /${DOLLAR}http_accept_language/$1 /nolang/$1 =404;
gzip on;
gzip_types text/text text/plain text/xml text/css application/x-javascript application/javascript application/json;
include mime.types;
types {
application/json geojson;
application/gpx+xml gpx;
application/x-font-ttf ttf;
}
}

location /media {
Expand Down
1 change: 1 addition & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ In preparation for HD Views developments (PR #3298)
- Check pictogram exist on categories during generation of pdfs
- Fix ApidaeParsers does not update every time
- Add fixtures licenses initial install
- Fix default conf nginx for mobile


2.94.0 (2022-12-12)
Expand Down

0 comments on commit 7623264

Please sign in to comment.