Skip to content

Commit

Permalink
Changes default.conf to serve config.json (#56)
Browse files Browse the repository at this point in the history
changes to serve config.json correctly via nginx.
  • Loading branch information
azak-azkaran authored Jun 1, 2023
1 parent 66af31f commit cc01067
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ server {
root /usr/share/nginx/html;
}

location /configs/config.json {
root /usr/share/nginx/html;
location /configs/ {
index config.json;
alias /usr/share/nginx/html/configs/;
add_header Cache-Control "no-store, no-cache";
add_header Content-Type application/json;
}
}

0 comments on commit cc01067

Please sign in to comment.