Skip to content

Commit

Permalink
image nginx unprivileged correction try_files
Browse files Browse the repository at this point in the history
  • Loading branch information
cdebarros committed Dec 5, 2023
1 parent 3c840bb commit 0acc43a
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions tools/docker/nginx.ign.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ server {
listen [::]:8080;
server_name localhost;

root /usr/share/nginx/html;

server_tokens off;

location ~ /index.html|.*\.toml|.*\.json$ {
Expand All @@ -14,22 +16,17 @@ server {
add_header Cache-Control 'max-age=86400'; # 24h
}

# location /catalogue/ {
# try_files $uri$args $uri$args/ /index.html;
# alias /usr/share/nginx/html/datahub;
# try_files $uri $uri/ /index.html;

# add_header Cache-Control 'max-age=86400'; # 24h
#}

location / {
root /usr/share/nginx/html/datahub/;
try_files $uri $uri/ /APP_NAME/index.html;

add_header Cache-Control 'max-age=86400'; # 24h
}

location /catalogue {
alias /usr/share/nginx/html/datahub/;
try_files $uri$args $uri$args/ /APP_NAME/index.html;

add_header Cache-Control 'max-age=86400'; # 24h
}

error_page 500 502 503 504 /50x.html;
Expand Down

0 comments on commit 0acc43a

Please sign in to comment.