Compare commits
2 commits
f9101e319f
...
ec31683ebe
Author | SHA1 | Date | |
---|---|---|---|
Sam A. | ec31683ebe | ||
Sam A. | ba53b23e2e |
|
@ -1,18 +1,6 @@
|
||||||
# vim: ft=yaml.ansible
|
# vim: ft=yaml.ansible
|
||||||
# code: language=ansible
|
# code: language=ansible
|
||||||
---
|
---
|
||||||
apps_include:
|
|
||||||
- nginx
|
|
||||||
- postfix
|
|
||||||
- ipfs
|
|
||||||
- jitsi
|
|
||||||
- joplin
|
|
||||||
- monerod
|
|
||||||
- nextcloud
|
|
||||||
- snowflake
|
|
||||||
- restic
|
|
||||||
- watchtower
|
|
||||||
|
|
||||||
jitsi_passwords:
|
jitsi_passwords:
|
||||||
jicofo_auth: "{{ vault_jitsi_passwords.jicofo_auth }}"
|
jicofo_auth: "{{ vault_jitsi_passwords.jicofo_auth }}"
|
||||||
jvb_auth: "{{ vault_jitsi_passwords.jvb_auth }}"
|
jvb_auth: "{{ vault_jitsi_passwords.jvb_auth }}"
|
||||||
|
|
|
@ -4,5 +4,3 @@
|
||||||
apps_include:
|
apps_include:
|
||||||
- minecraft
|
- minecraft
|
||||||
- watchtower
|
- watchtower
|
||||||
|
|
||||||
apps_create_shared_docker_network: false
|
|
||||||
|
|
|
@ -1,6 +1,18 @@
|
||||||
# vim: ft=yaml.ansible
|
# vim: ft=yaml.ansible
|
||||||
# code: language=ansible
|
# code: language=ansible
|
||||||
---
|
---
|
||||||
|
apps_include:
|
||||||
|
- nginx
|
||||||
|
- postfix
|
||||||
|
- ipfs
|
||||||
|
- jitsi
|
||||||
|
- joplin
|
||||||
|
- monerod
|
||||||
|
- nextcloud
|
||||||
|
- snowflake
|
||||||
|
- restic
|
||||||
|
- watchtower
|
||||||
|
|
||||||
base_domain: sapti.me
|
base_domain: sapti.me
|
||||||
internal_subnet: 10.2.16.0/24
|
internal_subnet: 10.2.16.0/24
|
||||||
postgresql_version: 14
|
postgresql_version: 14
|
||||||
|
|
|
@ -1,6 +1,17 @@
|
||||||
# vim: ft=yaml.ansible
|
# vim: ft=yaml.ansible
|
||||||
# code: language=ansible
|
# code: language=ansible
|
||||||
---
|
---
|
||||||
|
apps_include:
|
||||||
|
- nginx
|
||||||
|
- postfix
|
||||||
|
- ipfs
|
||||||
|
- jitsi
|
||||||
|
- joplin
|
||||||
|
- nextcloud
|
||||||
|
- snowflake
|
||||||
|
- restic
|
||||||
|
- watchtower
|
||||||
|
|
||||||
base_domain: staging.sapti.me
|
base_domain: staging.sapti.me
|
||||||
internal_subnet: 10.2.19.0/24
|
internal_subnet: 10.2.19.0/24
|
||||||
postgresql_version: 14
|
postgresql_version: 14
|
||||||
|
|
|
@ -79,7 +79,7 @@ apps_vars:
|
||||||
extra_tasks: true
|
extra_tasks: true
|
||||||
domain: cloud.{{ apps_base_domain }}
|
domain: cloud.{{ apps_base_domain }}
|
||||||
port: 80
|
port: 80
|
||||||
version: 29.0.4-apache
|
version: 29.0.6-apache
|
||||||
redis_version: 7-alpine
|
redis_version: 7-alpine
|
||||||
|
|
||||||
searxng:
|
searxng:
|
||||||
|
@ -124,7 +124,8 @@ apps_vars:
|
||||||
extra_tasks: false
|
extra_tasks: false
|
||||||
version: '1.7.1'
|
version: '1.7.1'
|
||||||
|
|
||||||
apps_include: "{{ apps_vars | dict2items | map(attribute='key') | list }}"
|
apps_exclude: []
|
||||||
|
apps_include: "{{ apps_vars | dict2items | map(attribute='key') | list | difference(apps_exclude) }}"
|
||||||
apps_backup: "{{ apps_vars | dict2items | selectattr('value.backup', 'true') | map(attribute='key') | list | intersect(apps_include) }}"
|
apps_backup: "{{ apps_vars | dict2items | selectattr('value.backup', 'true') | map(attribute='key') | list | intersect(apps_include) }}"
|
||||||
apps_proxied: "{{ apps_vars | dict2items | selectattr('value.domain', 'defined') | map(attribute='key') | list | intersect(apps_include) }}"
|
apps_proxied: "{{ apps_vars | dict2items | selectattr('value.domain', 'defined') | map(attribute='key') | list | intersect(apps_include) }}"
|
||||||
apps_torified: "{{ apps_vars | dict2items | selectattr('value.onion', 'defined') | map(attribute='key') | list | intersect(apps_include) }}"
|
apps_torified: "{{ apps_vars | dict2items | selectattr('value.onion', 'defined') | map(attribute='key') | list | intersect(apps_include) }}"
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
ipam_config:
|
ipam_config:
|
||||||
- subnet: 172.17.2.0/24
|
- subnet: 172.17.2.0/24
|
||||||
- subnet: fd02::/64
|
- subnet: fd02::/64
|
||||||
state: "{{ 'present' if apps_create_shared_docker_network is undefined or apps_create_shared_docker_network else 'absent' }}"
|
state: "{{ 'present' if 'caddy' in apps_include or 'nginx' in apps_include else 'absent' }}"
|
||||||
|
|
||||||
- name: Create Docker network for Postfix
|
- name: Create Docker network for Postfix
|
||||||
community.docker.docker_network:
|
community.docker.docker_network:
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
{% for env in proxy_environments %}
|
{% for env in proxy_environments %}
|
||||||
# BEGIN Environment: {{ env }}
|
# BEGIN Environment: {{ env }}
|
||||||
|
{% if 'nextcloud' in proxy_vars[env].app01.apps_include %}
|
||||||
|
|
||||||
cloud.{{ proxy_vars[env].app01.base_domain }} {
|
cloud.{{ proxy_vars[env].app01.base_domain }} {
|
||||||
tls {{ tls_email }} {
|
tls {{ tls_email }} {
|
||||||
|
@ -28,6 +29,8 @@ cloud.{{ proxy_vars[env].app01.base_domain }} {
|
||||||
respond 403
|
respond 403
|
||||||
{% endif %}
|
{% endif %}
|
||||||
}
|
}
|
||||||
|
{% endif %}
|
||||||
|
{% if 'ipfs' in proxy_vars[env].app01.apps_include %}
|
||||||
|
|
||||||
ipfs-gateway.{{ proxy_vars[env].app01.base_domain }},
|
ipfs-gateway.{{ proxy_vars[env].app01.base_domain }},
|
||||||
*.ipfs.ipfs-gateway.{{ proxy_vars[env].app01.base_domain }},
|
*.ipfs.ipfs-gateway.{{ proxy_vars[env].app01.base_domain }},
|
||||||
|
@ -76,6 +79,8 @@ ipfs.local.{{ proxy_vars[env].app01.base_domain }} {
|
||||||
|
|
||||||
respond 403
|
respond 403
|
||||||
}
|
}
|
||||||
|
{% endif %}
|
||||||
|
{% if 'joplin' in proxy_vars[env].app01.apps_include %}
|
||||||
|
|
||||||
joplin.{{ proxy_vars[env].app01.base_domain }} {
|
joplin.{{ proxy_vars[env].app01.base_domain }} {
|
||||||
tls {{ tls_email }} {
|
tls {{ tls_email }} {
|
||||||
|
@ -101,6 +106,8 @@ joplin.{{ proxy_vars[env].app01.base_domain }} {
|
||||||
respond 403
|
respond 403
|
||||||
{% endif %}
|
{% endif %}
|
||||||
}
|
}
|
||||||
|
{% endif %}
|
||||||
|
{% if 'jitsi' in proxy_vars[env].app01.apps_include %}
|
||||||
|
|
||||||
meet.{{ proxy_vars[env].app01.base_domain }} {
|
meet.{{ proxy_vars[env].app01.base_domain }} {
|
||||||
tls {{ tls_email }} {
|
tls {{ tls_email }} {
|
||||||
|
@ -126,6 +133,8 @@ meet.{{ proxy_vars[env].app01.base_domain }} {
|
||||||
respond 403
|
respond 403
|
||||||
{% endif %}
|
{% endif %}
|
||||||
}
|
}
|
||||||
|
{% endif %}
|
||||||
|
{% if 'monerod' in proxy_vars[env].app01.apps_include %}
|
||||||
|
|
||||||
xmr.local.{{ proxy_vars[env].app01.base_domain }} {
|
xmr.local.{{ proxy_vars[env].app01.base_domain }} {
|
||||||
tls {{ tls_email }} {
|
tls {{ tls_email }} {
|
||||||
|
@ -147,6 +156,7 @@ xmr.local.{{ proxy_vars[env].app01.base_domain }} {
|
||||||
|
|
||||||
respond 403
|
respond 403
|
||||||
}
|
}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
# END Environment: {{ env }}
|
# END Environment: {{ env }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Reference in a new issue