add warehost-client-web
This commit is contained in:
parent
2be8028c5f
commit
b8aacc4f3b
|
@ -0,0 +1,3 @@
|
||||||
|
warehost_webclient_domain: warehost.de
|
||||||
|
warehost_webclient_repo: git@dev.sum7.eu:sum7/warehost-client-web.git
|
||||||
|
warehost_webclient_version: master
|
|
@ -0,0 +1,3 @@
|
||||||
|
---
|
||||||
|
- name: reload caddy
|
||||||
|
service: name=caddy state=reloaded
|
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
- name: Configurate caddy for warehost client web
|
||||||
|
template: src=caddy.conf dest=/etc/caddy/hosts/79-warehost_client_web.act owner={{http_usr}} mode=0644
|
||||||
|
notify: reload caddy
|
||||||
|
|
||||||
|
- name: Create domain folder for warehost client web
|
||||||
|
file: path=/srv/http/domain/{{warehost_webclient_domain}} state=directory mode=0755 owner={{http_usr}} group={{http_grp}}
|
|
@ -0,0 +1,5 @@
|
||||||
|
http://{{warehost_webclient_domain}}, https://{{warehost_webclient_domain}} {
|
||||||
|
tls {{caddy_ssl_mail}}
|
||||||
|
gzip
|
||||||
|
root /srv/http/domain/{{warehost_webclient_domain}}
|
||||||
|
}
|
|
@ -9,7 +9,7 @@ Type=oneshot
|
||||||
User=warehost
|
User=warehost
|
||||||
ExecStart=/usr/local/bin/warehost-host -c /etc/warehost/host.conf
|
ExecStart=/usr/local/bin/warehost-host -c /etc/warehost/host.conf
|
||||||
PermissionsStartOnly=true
|
PermissionsStartOnly=true
|
||||||
ExecStartPost=/usr/bin/systemctl reload {{warehost_host_web_type}}
|
ExecStartPost=/bin/systemctl reload {{warehost_host_web_type}}
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
Reference in New Issue