-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexample-nginx-virtualhost.conf
More file actions
25 lines (21 loc) · 941 Bytes
/
example-nginx-virtualhost.conf
File metadata and controls
25 lines (21 loc) · 941 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
server {
listen 80;
server_name twitchbot.example.com;
return 301 https://twitchbot.example.com$request_uri;
}
server {
listen 443 ssl;
server_name twitchbot.example.com;
ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;
access_log /home/twitchbotexamplecom/logs/twitchbotexample.co.uk.access.log;
error_log /home/twitchbotexamplecom/logs/twitchbotexample.co.uk.error.log;
location / {
#proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
#proxy_set_header Host $http_host;
#proxy_http_version 1.1;
#proxy_buffering off;
#proxy_read_timeout 20m;
proxy_pass http://127.0.0.1:4000;
}
}