-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.toml
85 lines (72 loc) · 1.64 KB
/
nginx.toml
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
[default]
ssl_cert_domain = "www.example.com"
[[http_d]]
server_name = "www.port.error"
proxy_pass = "http://127.0.0.1:8000"
[[http_d]]
server_name = "www.http.only"
listen = 10080
proxy_pass = "http://127.0.0.1:8000"
[[http_d]]
server_name = "www.https.only"
listen_ssl = 10443
proxy_pass = "http://127.0.0.1:8000"
[[http_d]]
server_name = "www.special.port"
listen_ssl = 55555
proxy_pass = "http://127.0.0.1:8000"
[[http_d]]
server_name = "www.example.com"
listen = 10080
listen_ssl = 10443
proxy_pass = "http://127.0.0.1:8000"
client_max_body_size = "100m"
[[http_d]]
server_name = "www.custom.root.location.com"
listen_ssl = 10443
proxy_pass = "http://127.0.0.1:8000"
location."/" = """
proxy_pass $proxy_pass;
"""
[[http_d]]
server_name = "www.more.location.com"
listen_ssl = 10443
proxy_pass = "http://127.0.0.1:8000"
location."/" = """
proxy_pass $proxy_pass;
"""
location."/api/verify" = """
proxy_pass $proxy_pass;
"""
[[http_d]]
server_name = "www.mapping.root.com"
listen_ssl = 10443
root_path = "/var/www"
[[http_d]]
server_name = "www.disable.http2.com"
listen_ssl = 10443
listen_http2 = false
root_path = "/var/www"
[[http_d]]
server_name = "hsts.example.com"
listen = 10080
listen_ssl = 10443
proxy_pass = "http://127.0.0.1:8000"
hsts = true
[[http_d]]
server_name = "wupstreamww.example.com"
listen = 10080
listen_ssl = 10443
upstream_name = "upstream_test"
upstream_server = "test.lan:8000"
proxy_pass = "http://upstream_test"
[[stream_d]]
comment = "ssh"
listen = 10022
proxy_pass = "192.168.1.1:22"
[[stream_d]]
comment = "git"
listen = 12222
upstream_name = "ssh_upstream_test"
upstream_server = "test.lan:22"
proxy_pass = "ssh_upstream_test"