forked from waves-exchange/neutrino-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.conf
executable file
·36 lines (28 loc) · 897 Bytes
/
example.conf
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
28
29
30
31
32
33
34
35
36
# Redirect from http to https
server {
listen 80;
server_name beta.neutrino.at;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
# SSL file paths
ssl_certificate /fullchain.pem;
ssl_certificate_key /privkey.pem;
# Directories for logs
access_log /var/log/nginx/beta.neutrino-at.access.log;
error_log /var/log/nginx/beta.neutrino-at.error.log;
root /var/www/html;
index index.html index.htm index.nginx-debian.html;
# specific server name
server_name beta.neutrino.at;
location / {
# Proxy to Docker instance
proxy_pass http://localhost:5000;
# Required headers
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 https;
}
}