1 Commits

3 changed files with 10 additions and 30 deletions

View File

@ -44,4 +44,12 @@
day: 4,18
hour: 6
minute: 10
job: "docker service update --force {{ althost }}_proxy"
job: "docker service update --force {{ althost }}_proxy"
- name: mail proxy update, after certs renewal
cron:
name: mail proxy update
day: 4,18
hour: 6
minute: 20
job: "docker service update {{ althost }}_correspondencia_front"

View File

@ -94,14 +94,6 @@
when: (ma.ports is defined)
loop_control:
loop_var: ma
- name: add gitea port if any service has gitea_port defined
set_fact:
matrix_ports: "{{ matrix_ports | default([]) | union([ma.gitea_port]) }}"
with_items: "{{ matrix }}"
when: (ma.gitea_port is defined)
loop_control:
loop_var: ma
- include_tasks: ../../althost/tasks/compose.yml
vars: # forcing since this role is included statically

View File

@ -2,12 +2,6 @@ upstream ssh_{{ vhost.nodo | replace(".", "") }} {
server {{ vhost.nodo }}:22;
}
{% if vhost.gitea_port is defined %}
upstream gitea_{{ vhost.nodo | replace(".", "") }} {
server {{ vhost.nodo }}:{{ vhost.gitea_port }};
}
{% endif %}
server {
listen {{ vhost.ports[0] }};
@ -18,18 +12,4 @@ server {
{% endif %}
proxy_pass ssh_{{ vhost.nodo | replace(".", "") }};
}
{% if vhost.gitea_port is defined %}
server {
listen {{ vhost.gitea_port }};
{% if vhost.root | default(false) %}
server_name {{ vhost.domains | join(' ') }};
{% else %}
server_name .{{ vhost.domains | join(' .') }};
{% endif %}
proxy_pass gitea_{{ vhost.nodo | replace(".", "") }};
}
{% endif %}
}