Add reverse proxy settings for Gitea and Bitwarden

This commit is contained in:
2022-05-28 00:18:15 -04:00
parent 3a92921932
commit eccd6b7874
7 changed files with 22 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
bitwarden_name: bitwarden
bitwarden_root: "/var/lib/{{ bitwarden_name }}"
bitwarden_database: "{{ bitwarden_name }}"
bitwarden_realips: "172.16.0.0/12"
bitwarden_standalone: false
bitwarden_production: false

View File

@@ -65,6 +65,12 @@
when: not bitwarden_standalone
notify: rebuild_bitwarden
- name: Define reverse proxy servers
lineinfile:
path: "{{ bitwarden_root }}/bwdata/config.yml"
line: "- {{ bitwarden_realips }}"
insertafter: "^real_ips"
- name: Install Bitwarden systemd service
template:
src: bitwarden.service.j2