Skip to content
Snippets Groups Projects
Commit 978c265c authored by ynerant's avatar ynerant Committed by ynerant
Browse files

[nginx/statping] Extract nginx configuration from statping and gitea


Signed-off-by: ynerant's avatarYohann D'ANELLO <ynerant@crans.org>
parent 6b8fb091
No related branches found
No related tags found
1 merge request!165Nginx
...@@ -43,7 +43,7 @@ loc_certbot: ...@@ -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: ...@@ -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: []
...@@ -122,6 +122,7 @@ radius ...@@ -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
......
--- ---
- name: Restart nginx
service:
name: nginx
state: restarted
- name: Restart statping - name: Restart statping
service: service:
name: statping name: statping
......
...@@ -29,19 +29,6 @@ ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment