Last active
November 26, 2020 19:37
-
-
Save gmarcial/f455eb09abf456fa373d33d1b16e4638 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# api oauth2 | |
server { | |
listen 80; | |
listen [::]:80; | |
server_name auth.suporte.connectintegra.com.br; | |
location / { | |
if ($request_method = 'OPTIONS') { | |
# Tell client that this pre-flight info is valid for 20 days | |
add_header 'Access-Control-Max-Age' 1728000; | |
add_header 'Content-Type' 'text/plain charset=UTF-8'; | |
add_header 'Content-Length' 0; | |
add_header 'Access-Control-Allow-Origin' "$http_origin" always; | |
add_header 'Access-Control-Allow-Credentials' 'true' always; | |
add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS' always; | |
add_header 'Access-Control-Allow-Headers' 'Accept,Authorization,Cache-Control,Content-Type,DNT,If-Modified-Since,Keep-Alive,Origin,User-Agent,X-Requested-With' always; | |
return 204; | |
} | |
proxy_pass http://172.17.0.1:9191; | |
} | |
} | |
# iam | |
server { | |
listen 80; | |
listen [::]:80; | |
server_name iam.suporte.connectintegra.com.br; | |
location / { | |
proxy_pass http://172.17.0.1:35005; | |
} | |
location /api { | |
proxy_pass http://172.17.0.1:35006; | |
} | |
} | |
# login | |
server { | |
listen 80; | |
listen [::]:80; | |
server_name login.suporte.connectintegra.com.br; | |
location / { | |
proxy_pass http://172.17.0.1:35002; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment