Dial back directory permissions just enough so that containers can read the generated onion service hostname file.

This commit is contained in:
Brian Lee 2023-07-18 14:46:06 -07:00
parent ea393c523d
commit 35083be06d
2 changed files with 4 additions and 2 deletions

View File

@ -2,7 +2,7 @@
samourai_dojo_version: "1.20.0"
samourai_dojo_onion_address: "{{ lookup('ansible.builtin.env', 'SAMOURAI_DOJO_ONION') | default('_') }}"
samourai_dojo_onion_port: 80
onion_services_path: data-tor
#samourai_dojo_https_port: 4480
samourai_dojo_ws_http_port: 8080
samourai_dojo_pushtx_http_port: 8081

View File

@ -22,6 +22,7 @@
state: present
name: data-tor
recreate: no
when: not onion_services_path.startswith('/')
- name: Dojo | Create container
register: podman_container_output
@ -35,7 +36,8 @@
env: "{{ samourai_dojo_config }}"
ports: "{{ samourai_dojo_ports }}"
volume:
- data-tor:/var/lib/tor
- /var/lib/tor/hsv3dojo/hostname:/var/lib/tor/hsv3dojo/hostname
# - "{{ onion_services_path }}:/var/lib/tor"
command: /home/node/app/restart.sh
# command: "/home/node/app/wait-for-it.sh host.containers.internal:3306 --timeout=720 --strict -- /home/node/app/restart.sh"