Requires login to see themes (when using fic-nginx container)

This commit is contained in:
nemunaire 2023-07-28 10:34:56 +02:00
commit cb2cd7f4c0
5 changed files with 53 additions and 8 deletions

View file

@ -150,9 +150,15 @@ server {
add_header Cache-Control no-cache;
}
location /themes.json {
include fic-get-team.conf;
root ${PATH_TEAMS};
expires epoch;
add_header Cache-Control no-cache;
if (!-f ${PATH_TEAMS}/$team/my.json) {
rewrite ^/ /themes-wait.json break;
}
}
location /challenge.json {
root ${PATH_SETTINGS}/;