Created
April 18, 2019 00:43
-
-
Save mhdelta/2ba7d377ee576abfe0290332862488ae to your computer and use it in GitHub Desktop.
ngx
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
server { | |
listen *:80; | |
autoindex on; | |
server_name servername; | |
root /var/www/observatorio/html/observatorio-app/dist/observatorio-app; | |
index index.html; | |
location /api/ { | |
root www/observatorio/html/observatorio-app/dist/observatorio-app/obs-api; | |
proxy_pass http://127.0.0.1:1337; | |
#proxy_redirect off; | |
#proxy_buffering on; | |
#proxy_set_header 'Access-Control-Allow-Origin' 'http://servername'; | |
#proxy_set_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS, PUT, DELETE'; | |
#proxy_set_header 'Access-Control-Allow-Headers' 'X-Requested-With,Accept,Content-Type, Origin'; | |
#proxy_set_header Host $host; | |
#proxy_set_header X-Real-IP $remote_addr; | |
#proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
#proxy_set_header origin 'http://servername'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment