forked from fengqi/ngrok-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnginx.conf.example
More file actions
52 lines (42 loc) · 1.09 KB
/
nginx.conf.example
File metadata and controls
52 lines (42 loc) · 1.09 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
map $scheme $proxy_port {
"http" "8080";
"https" "8081";
default "8080";
}
server {
listen 80;
listen [::]:80;
listen 443 spdy ssl;
listen [::]:443 spdy ssl;
server_name lanout.tk;
root /data/www/lanout.tk;
index index.html;
ssl on;
ssl_certificate /opt/ngrok/lanout.tk.crt;
ssl_certificate_key /opt/ngrok/lanout.tk.key;
include hsts.conf;
error_page 404 /404.html;
}
server {
listen 80;
listen [::]:80;
listen 443 spdy ssl;
listen [::]:443 spdy ssl;
server_name *.lanout.tk;
ssl on;
ssl_certificate /opt/ngrok/lanout.tk.crt;
ssl_certificate_key /opt/ngrok/lanout.tk.key;
include hsts.conf;
error_page 404 /404.html;
location / {
proxy_intercept_errors on;
proxy_pass $scheme://127.0.0.1:$proxy_port;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /404.html {
root /data/www/lanout.tk;
}
access_log off;
log_not_found off;
}