-
Notifications
You must be signed in to change notification settings - Fork 1
/
example.vhosts.yml
166 lines (152 loc) · 3.59 KB
/
example.vhosts.yml
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
---
## Example virtual hosts for proxy nginx. Port mapping are synced with it's example container configuration.
# @see https://galaxy.ansible.com/andyceo/nginx/
vhosts:
dockerui:
enabled: no
listen:
- '*:80'
root: /var/www
name: dockerui.example.com
auth:
root: secret_password
nginx:
locations:
main:
pattern: '/'
includes:
- main
location: |
proxy_pass http://127.0.0.1:9000;
proxy_http_version 1.1;
proxy_set_header Connection "";
phpmemcachedadmin:
enabled: no
listen:
- '*:80'
root: /var/www
name: phpmemcachedadmin.example.com
auth:
root: secret_password
nginx:
locations:
main:
pattern: '/'
includes:
- main
location: |
proxy_pass http://127.0.0.1:30080;
gitlab:
enabled: no
listen:
- '*:80'
root: /var/www
name: gitlab.example.com
nginx:
locations:
main:
pattern: '/'
includes:
- main
location: |
proxy_read_timeout 900s;
proxy_connect_timeout 900s;
proxy_redirect off;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Frame-Options SAMEORIGIN;
proxy_pass http://127.0.0.1:31080;
'docker-registry-frontend':
enabled: no
listen:
- '*:80'
root: /var/www
name: registry.example.com
auth:
root: secret_password
nginx:
locations:
main:
pattern: '/'
includes:
- main
location: |
proxy_pass http://127.0.0.1:32080;
jenkins:
enabled: no
listen:
- '*:80'
root: /var/www
name: jenkins.example.com
nginx:
locations:
main:
pattern: '/'
includes:
- main
location: |
proxy_read_timeout 900s;
#proxy_connect_timeout 900s;
proxy_redirect off;
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_pass http://127.0.0.1:33080;
phpmyadmin:
enabled: no
listen:
- '*:80'
root: /var/www
name: phpmyadmin.example.com
nginx:
locations:
main:
pattern: '/'
includes:
- main
location: |
proxy_pass http://127.0.0.1:34080;
redmine:
enabled: no
listen:
- '*:80'
root: /var/www
name: redmine.example.com
nginx:
locations:
main:
pattern: '/'
includes:
- main
location: |
proxy_pass http://127.0.0.1:35000;
influxdb:
enabled: no
listen:
- '*:80'
root: /var/www
name: influxdb.example.com
nginx:
locations:
main:
pattern: '/'
includes:
- main
location: |
proxy_pass http://127.0.0.1:8083;
grafana:
enabled: yes
listen:
- '*:80'
root: /var/www
name: grafana.example.com
nginx:
locations:
main:
pattern: '/'
includes:
- main
location: |
proxy_pass http://127.0.0.1:36000;