Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.

Commit

Permalink
stop avril
Browse files Browse the repository at this point in the history
  • Loading branch information
augnustin committed Feb 2, 2024
1 parent 23b6f5e commit a7964c4
Showing 1 changed file with 64 additions and 60 deletions.
124 changes: 64 additions & 60 deletions nginx/configs/avril.pole-emploi.fr.conf
Original file line number Diff line number Diff line change
Expand Up @@ -66,68 +66,72 @@ server {

set $upstream_phoenix phoenix:4000;

if ($host !~* "^avril\.pole-emploi\.fr$") {
return 301 https://avril.pole-emploi.fr$request_uri;
}

location = /6e39eb85b6d40557549fd0d02e127976.txt {
root /static;
try_files /6e39eb85b6d40557549fd0d02e127976.txt =404;
}

location / {
proxy_pass http://$upstream_phoenix;
proxy_read_timeout 90;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
limit_req zone=post_avril burst=5 nodelay;
client_max_body_size 10M;
deny 2606:4700:3036::ac43:cfa8;
}

set $upstream_nuxt_booklet nuxt_booklet:3000;
location /ma-candidature-vae/ {
proxy_pass http://$upstream_nuxt_booklet;
proxy_read_timeout 90;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

set $upstream_nuxt_profile nuxt_profile:3000;
location /mon-espace/ {
proxy_pass http://$upstream_nuxt_profile;
proxy_read_timeout 90;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
rewrite ^ https://vae.gouv.fr permanent;
}

set $upstream_minio minio:9000;
location /files/ {
rewrite ^/files(/.*)$ /avril-resumes/$1 break;
proxy_pass http://$upstream_minio;
proxy_read_timeout 90;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

location /static/ {
autoindex on;
rewrite ^/static(/.*)$ /$1 break;
root /static;
}

location = /404.html {
root /errors;
}

location = /500.html {
root /errors;
}
# if ($host !~* "^avril\.pole-emploi\.fr$") {
# return 301 https://avril.pole-emploi.fr$request_uri;
# }

# location = /6e39eb85b6d40557549fd0d02e127976.txt {
# root /static;
# try_files /6e39eb85b6d40557549fd0d02e127976.txt =404;
# }

# location / {
# proxy_pass http://$upstream_phoenix;
# proxy_read_timeout 90;
# proxy_set_header Host $host;
# proxy_set_header X-Forwarded-Proto $scheme;
# proxy_http_version 1.1;
# proxy_set_header Upgrade $http_upgrade;
# proxy_set_header Connection $connection_upgrade;
# limit_req zone=post_avril burst=5 nodelay;
# client_max_body_size 10M;
# deny 2606:4700:3036::ac43:cfa8;
# }

# set $upstream_nuxt_booklet nuxt_booklet:3000;
# location /ma-candidature-vae/ {
# proxy_pass http://$upstream_nuxt_booklet;
# proxy_read_timeout 90;
# proxy_set_header Host $host;
# proxy_set_header X-Forwarded-Proto $scheme;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# }

# set $upstream_nuxt_profile nuxt_profile:3000;
# location /mon-espace/ {
# proxy_pass http://$upstream_nuxt_profile;
# proxy_read_timeout 90;
# proxy_set_header Host $host;
# proxy_set_header X-Forwarded-Proto $scheme;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# }

# set $upstream_minio minio:9000;
# location /files/ {
# rewrite ^/files(/.*)$ /avril-resumes/$1 break;
# proxy_pass http://$upstream_minio;
# proxy_read_timeout 90;
# proxy_set_header Host $host;
# proxy_set_header X-Forwarded-Proto $scheme;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# }

# location /static/ {
# autoindex on;
# rewrite ^/static(/.*)$ /$1 break;
# root /static;
# }

# location = /404.html {
# root /errors;
# }

# location = /500.html {
# root /errors;
# }

}

0 comments on commit a7964c4

Please sign in to comment.