Created
May 13, 2020 01:23
-
-
Save helloitsjoe/9b5b86c06da6dfa6753f5e3c922d4809 to your computer and use it in GitHub Desktop.
Nginx config for Sentiment Analysis tutorial: https://rinormaloku.com/introduction-application-architecture/
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; | |
server_name localhost; | |
# Reverse proxy | |
location /sentiment/ { | |
proxy_pass http://sa-web-app-lb:8080/; | |
} | |
location / { | |
root /usr/share/nginx/html; | |
index index.html index.htm; | |
} | |
error_page 404 /404.html; | |
error_page 500 502 503 504 /50x.html; | |
location = /50x.html { | |
root /usr/share/nginx/html; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nginx config that includes a reverse proxy for a backend service in the same kubernetes cluster. Two options for replacing the config in your nginx container:
/etc/nginx/conf.d
directory