Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (20 sloc) 631 Bytes
server {
listen 8088;
server_name localhost;
location / {
# location of flask app
proxy_pass http://0.0.0.0:5000;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Scheme $scheme;
proxy_set_header X-Script-Name /myprefix;
proxy_set_header X-Real-IP $remote_addr;
}
location /elastic/ {
internal;
# location of elastic search
proxy_pass http://0.0.0.0:9200/;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
Something went wrong with that request. Please try again.