[nginx/statping] Extract nginx configuration from statping and gitea
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>certbot_on_virtu
parent
6b8fb0916f
commit
978c265c03
|
@ -43,7 +43,7 @@ loc_certbot:
|
||||||
dns_rfc2136_secret: "{{ vault.certbot_dns_secret }}"
|
dns_rfc2136_secret: "{{ vault.certbot_dns_secret }}"
|
||||||
mail: root@crans.org
|
mail: root@crans.org
|
||||||
certname: crans.org
|
certname: crans.org
|
||||||
domains: "git2.crans.org, status.crans.org, wiki.crans.org"
|
domains: "*.crans.org"
|
||||||
|
|
||||||
loc_nginx:
|
loc_nginx:
|
||||||
service_name: wiki
|
service_name: wiki
|
||||||
|
@ -87,3 +87,13 @@ loc_nginx:
|
||||||
params:
|
params:
|
||||||
- "uwsgi_pass unix:///var/run/uwsgi/app/moinmoin/socket"
|
- "uwsgi_pass unix:///var/run/uwsgi/app/moinmoin/socket"
|
||||||
- "include uwsgi_params"
|
- "include uwsgi_params"
|
||||||
|
|
||||||
|
loc_reverseproxy:
|
||||||
|
reverseproxy_sites:
|
||||||
|
- {from: status.crans.org, to: "127.0.0.1:8080"}
|
||||||
|
- {from: git2.crans.org, to: "127.0.0.1:3000"}
|
||||||
|
- {from: git2.adm.crans.org, to: "127.0.0.1:3000", ssl: adm.crans.org}
|
||||||
|
|
||||||
|
redirect_sites: []
|
||||||
|
|
||||||
|
static_sites: []
|
||||||
|
|
1
hosts
1
hosts
|
@ -122,6 +122,7 @@ radius
|
||||||
|
|
||||||
[reverseproxy]
|
[reverseproxy]
|
||||||
hodaur.adm.crans.org
|
hodaur.adm.crans.org
|
||||||
|
sputnik.adm.crans.org
|
||||||
|
|
||||||
[roundcube]
|
[roundcube]
|
||||||
roundcube.adm.crans.org
|
roundcube.adm.crans.org
|
||||||
|
|
|
@ -1,9 +1,4 @@
|
||||||
---
|
---
|
||||||
- name: Restart nginx
|
|
||||||
service:
|
|
||||||
name: nginx
|
|
||||||
state: restarted
|
|
||||||
|
|
||||||
- name: Restart statping
|
- name: Restart statping
|
||||||
service:
|
service:
|
||||||
name: statping
|
name: statping
|
||||||
|
|
|
@ -29,19 +29,6 @@
|
||||||
enabled: true
|
enabled: true
|
||||||
state: started
|
state: started
|
||||||
|
|
||||||
- name: Configure statping nginx site
|
|
||||||
template:
|
|
||||||
src: nginx/sites-available/status.j2
|
|
||||||
dest: /etc/nginx/sites-available/status
|
|
||||||
notify: Restart nginx
|
|
||||||
|
|
||||||
- name: Activate statping nginx site
|
|
||||||
file:
|
|
||||||
src: /etc/nginx/sites-available/status
|
|
||||||
dest: /etc/nginx/sites-enabled/status
|
|
||||||
state: link
|
|
||||||
notify: Restart nginx
|
|
||||||
|
|
||||||
- name: Indicate role in motd
|
- name: Indicate role in motd
|
||||||
template:
|
template:
|
||||||
src: update-motd.d/05-service.j2
|
src: update-motd.d/05-service.j2
|
||||||
|
|
Loading…
Reference in New Issue