docker
This commit is contained in:
32
docker/host-nginx/taklimatspr.apps.mbip.my.conf
Normal file
32
docker/host-nginx/taklimatspr.apps.mbip.my.conf
Normal file
@@ -0,0 +1,32 @@
|
||||
# Host nginx reverse proxy for the Dockerized app.
|
||||
# Install on the Ubuntu host:
|
||||
# sudo cp docker/host-nginx/taklimatspr.apps.mbip.my.conf \
|
||||
# /etc/nginx/sites-available/taklimatspr.apps.mbip.my
|
||||
# sudo ln -s /etc/nginx/sites-available/taklimatspr.apps.mbip.my \
|
||||
# /etc/nginx/sites-enabled/
|
||||
# sudo nginx -t && sudo systemctl reload nginx
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name taklimatspr.apps.mbip.my;
|
||||
|
||||
client_max_body_size 21M;
|
||||
|
||||
access_log /var/log/nginx/taklimatspr.access.log;
|
||||
error_log /var/log/nginx/taklimatspr.error.log;
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:8008;
|
||||
proxy_http_version 1.1;
|
||||
|
||||
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 X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Forwarded-Host $host;
|
||||
|
||||
proxy_connect_timeout 30s;
|
||||
proxy_read_timeout 60s;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user