You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
420 B
YAML

---
- name: Configure proxy for {{ protocol }} on {{ domain }}:{{ port }}
template:
src: mail_proxy.conf
dest: "{{ nginx_streams_directory }}/{{ domain }}:{{ port }}"
owner: "{{ global_nginx_system_user }}"
group: "{{ global_nginx_system_user }}"
mode: "u=rw,g=r,o=r"
tags:
- certificate
- name: Allow {{ protocol }} in firewall
ufw:
rule: allow
port: "{{ port }}"
proto: tcp