[galene] Gardening
parent
7222edecc5
commit
9024a402a9
|
@ -11,7 +11,10 @@ service_nginx:
|
||||||
params:
|
params:
|
||||||
- "include /etc/nginx/snippets/options-proxypass.conf"
|
- "include /etc/nginx/snippets/options-proxypass.conf"
|
||||||
- "proxy_pass http://localhost:8443"
|
- "proxy_pass http://localhost:8443"
|
||||||
|
- filter: "/auth"
|
||||||
|
params:
|
||||||
|
- "include /etc/nginx/snippets/options-proxypass.conf"
|
||||||
|
- "proxy_pass http://localhost:1234"
|
||||||
- filter: "~ ^/(\\w+)/$"
|
- filter: "~ ^/(\\w+)/$"
|
||||||
params:
|
params:
|
||||||
- "return 302 https://$host/group/$1"
|
- "return 302 https://$host/group/$1"
|
||||||
|
@ -20,11 +23,17 @@ service_nginx:
|
||||||
server_name:
|
server_name:
|
||||||
- "neree.crans.org"
|
- "neree.crans.org"
|
||||||
locations:
|
locations:
|
||||||
- filter: "/"
|
- filter: "~ ^(/ws|.*\\.json)$"
|
||||||
params:
|
params:
|
||||||
- "include /etc/nginx/snippets/options-proxypass.conf"
|
- "include /etc/nginx/snippets/options-proxypass.conf"
|
||||||
- "proxy_pass http://localhost:8443"
|
- "proxy_pass http://localhost:8443"
|
||||||
|
|
||||||
- filter: "~ ^/(\\w+)/$"
|
- filter: "~ ^/(\\w+)/$"
|
||||||
params:
|
params:
|
||||||
- "return 302 https://$host/group/$1"
|
- "return 302 https://$host/group/$1"
|
||||||
|
- filter: "/"
|
||||||
|
params:
|
||||||
|
- "include /etc/nginx/snippets/options-proxypass.conf"
|
||||||
|
- "proxy_pass http://localhost:8444"
|
||||||
|
|
||||||
|
glob_galene:
|
||||||
|
version: 0.6.1
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
- name: Restart galène
|
- name: systemctl restart galene.service
|
||||||
systemd:
|
systemd:
|
||||||
name: galene
|
name: galene
|
||||||
state: restarted
|
state: restarted
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
git:
|
git:
|
||||||
repo: https://github.com/jech/galene.git
|
repo: https://github.com/jech/galene.git
|
||||||
dest: /var/local/galene
|
dest: /var/local/galene
|
||||||
version: galene-0.3.5
|
version: galene-{{ galene.version }}
|
||||||
register: git_result
|
register: git_result
|
||||||
become_user: galene
|
become_user: galene
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@
|
||||||
chdir: /var/local/galene
|
chdir: /var/local/galene
|
||||||
environment:
|
environment:
|
||||||
CGO_ENABLED: 0
|
CGO_ENABLED: 0
|
||||||
notify: Restart galène
|
notify: systemctl restart galene.service
|
||||||
|
|
||||||
- name: Make Galène configuration directory
|
- name: Make Galène configuration directory
|
||||||
file:
|
file:
|
||||||
|
@ -70,7 +70,7 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: 0644
|
||||||
notify: Restart galène
|
notify: systemctl restart galene.service
|
||||||
|
|
||||||
- name: Enable systemd unit
|
- name: Enable systemd unit
|
||||||
systemd:
|
systemd:
|
||||||
|
|
|
@ -9,7 +9,7 @@ Type=simple
|
||||||
WorkingDirectory=/var/local/galene
|
WorkingDirectory=/var/local/galene
|
||||||
User=galene
|
User=galene
|
||||||
Group=galene
|
Group=galene
|
||||||
ExecStart=/var/local/galene/galene --insecure --static /var/www/galene-static/static/
|
ExecStart=/var/local/galene/galene --insecure
|
||||||
LimitNOFILE=65536
|
LimitNOFILE=65536
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|
Loading…
Reference in New Issue