Docker based proxy

This commit is contained in:
Maarten de Waard 2022-06-23 09:27:54 +00:00 committed by Varac
parent 812fc41c6e
commit 942e81775f
5 changed files with 152 additions and 149 deletions

26
proxy/default.conf Normal file
View file

@ -0,0 +1,26 @@
# Default server configuration
#
server {
listen 8081 default_server;
listen [::]:8081 default_server;
root /var/www/html;
index index.html;
server_name _;
# Flask app
location / {
proxy_pass http://flask_app:5000/;
proxy_redirect default;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
# Kratos Public
location /kratos/ {
proxy_pass http://kube_port_kratos_public:8080/;
proxy_redirect default;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}