infra: dusting

This commit is contained in:
nemunaire 2018-12-06 03:48:53 +01:00
commit 8edc8e697c
5 changed files with 68 additions and 39 deletions

View file

@ -36,9 +36,6 @@ server {
location = /index.html {
include fic-auth.conf;
}
location ~ ^/public[0-9].html {
rewrite ^ /public.html;
}
location = /welcome.html {
internal;
if ($http_accept ~ "^application/json") {
@ -109,11 +106,6 @@ server {
expires epoch;
add_header Cache-Control no-cache;
}
location ~ /public[0-9].json {
root /srv/TEAMS/public/;
expires epoch;
add_header Cache-Control no-cache;
}
location /stats.json {
root /srv/TEAMS/;
expires epoch;
@ -170,6 +162,15 @@ server {
proxy_set_header X-Forwarded-For $remote_addr;
proxy_redirect off;
}
location /registration {
include fic-auth.conf;
rewrite ^/registration /registration/$team break;
proxy_pass http://frontend:8080;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_redirect off;
}
location /openhint/ {
include fic-auth.conf;