-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp
More file actions
27 lines (22 loc) · 643 Bytes
/
app
File metadata and controls
27 lines (22 loc) · 643 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
env NGINX_BACKEND_IP_PORT
upstream app {
server ${NGINX_BACKEND_IP_PORT} weight=10 max_fails=3 fail_timeout=30s;
}
server {
server_name ${NGINX_SERVER_NAME} ${NGINX_SERVER_NAME_2}
access_log ${NGINX_LOG_DIR}/access.log;
error_log ${NGINX_LOG_DIR}/error.log;
location ~ /\.ht {
deny all;
}
location ~ /\.git {
deny all;
}
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_redirect off;
proxy_set_header Host $http_host;
proxy_pass http://app;
}
}