[WEB - 1302]dev: nginx headers and auth error codes. (#4449)

* dev: add nginx headers

* fix: handled error messages in admin

---------

Co-authored-by: guru_sainath <gurusainath007@gmail.com>
This commit is contained in:
Nikhil 2024-05-14 13:46:05 +05:30 committed by GitHub
parent 2593dc8afc
commit dbc0d7019b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 243 additions and 230 deletions

View file

@ -16,7 +16,9 @@ http {
add_header Permissions-Policy "interest-cohort=()" always;
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
add_header X-Forwarded-Proto "${dollar}scheme";
add_header Host "${dollar}host";
add_header X-Forwarded-Host "${dollar}host";
add_header X-Forwarded-For "${dollar}proxy_add_x_forwarded_for";
add_header Host "${dollar}http_host";
location / {
proxy_pass http://web:3000/;
@ -30,10 +32,14 @@ http {
}
location /api/ {
proxy_set_header X-Forwarded-For "${dollar}proxy_add_x_forwarded_for";
proxy_set_header Host "${dollar}http_host";
proxy_pass http://api:8000/api/;
}
location /auth/ {
proxy_set_header X-Forwarded-For "${dollar}proxy_add_x_forwarded_for";
proxy_set_header Host "${dollar}http_host";
proxy_pass http://api:8000/auth/;
}