add shlink config

This commit is contained in:
David Kilias 2021-04-21 22:29:31 +02:00
parent 1846a6723f
commit 3306b751c6
2 changed files with 31 additions and 1 deletions

View file

@ -67,7 +67,13 @@ all:
36633532393231663634663034666666356332373438646130643161383134653739663066626538
3661663132343639310a613431653031626434323064313465373866666332353931313836623465
3461
pottwal.n39.eu:
server_admin: "admin+pottwal@netz39.de"
shlink_geolite_license_key: !vault |
$ANSIBLE_VAULT;1.1;AES256
33626234393039623132663736656363356562383235353737313034613630626339303263366665
6133333035663566356532303131373066646632363233330a333230376231616461343262623138
31356239323439666632333033616366663762646366343839663463633665333863343437343334
3665386538393066380a383366346235343531306561643534663035646537666534383536333230
34613761363237633865306332653631323366343232353666343165666664343838

View file

@ -16,6 +16,8 @@
uritools_host_port: 8080
entities_validation_svc_host_port: 8082
shlink_host_port: 8083
shlink_domain_name: sl.n39.eu
roles:
- role: docker_setup
@ -148,6 +150,28 @@
site_name: entities-validation.svc.n39.eu
proxy_port: "{{ entities_validation_svc_host_port }}"
- name: Ensure container for shlink is running
docker_container:
name: shlink
image: shlinkio/shlink:2.6.2
pull: true
state: started
detach: yes
ports:
- "{{ shlink_host_port }}:8080"
restart_policy: unless-stopped
env:
SHORT_DOMAIN_HOST: "{{ shlink_domain_name }}"
SHORT_DOMAIN_SCHEMA: https
GEOLITE_LICENSE_KEY: "{{ shlink_geolite_license_key }}"
- name: Setup proxy site {{ shlink_domain_name }}
include_role:
name: setup-http-site-proxy
vars:
site_name: "{{ shlink_domain_name }}"
proxy_port: "{{ shlink_host_port }}"
handlers:
- name: restart mosquitto
docker_container: