[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:
parent
2593dc8afc
commit
dbc0d7019b
4 changed files with 243 additions and 230 deletions
|
|
@ -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/;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue