This repository has been archived on 2024-02-10. You can view files and clone it, but cannot push or open issues or pull requests.
cpx-ansible/roles/docker_services/tasks/services/tor.yml

37 lines
1.3 KiB
YAML
Raw Normal View History

2023-04-20 21:34:25 +00:00
# vim: ft=yaml.ansible
---
- name: Deploy Tor Docker container
community.docker.docker_container:
name: tor
state: "{{ 'absent' if stop is defined and stop else 'started' }}"
restart: "{{ stop is undefined or not stop }}"
image: goldy/tor-hidden-service:{{ services.tor.version }}
restart_policy: always
env:
2023-05-14 00:54:20 +00:00
# Required by SMP/XFTP server (we're not hosting anonymous services anyway)
2023-04-22 16:50:32 +00:00
TOR_EXTRA_OPTIONS: |
HiddenServiceNonAnonymousMode 1
HiddenServiceSingleHopMode 1
2023-04-20 21:34:25 +00:00
LINGVA_TOR_SERVICE_HOSTS: 80:lingva:3000
LINGVA_TOR_SERVICE_VERSION: '3'
LINGVA_TOR_SERVICE_KEY: "{{ secrets.tor.lingva_key }}"
SAMSAPTIDEV_TOR_SERVICE_HOSTS: 80:samsapti:80
SAMSAPTIDEV_TOR_SERVICE_VERSION: '3'
SAMSAPTIDEV_TOR_SERVICE_KEY: "{{ secrets.tor.samsapti_dev_key }}"
2023-04-20 21:34:25 +00:00
SEARXNG_TOR_SERVICE_HOSTS: 80:searxng:8080
SEARXNG_TOR_SERVICE_VERSION: '3'
SEARXNG_TOR_SERVICE_KEY: "{{ secrets.tor.searxng_key }}"
2023-04-22 16:50:32 +00:00
SMPSERVER_TOR_SERVICE_HOSTS: 5223:smp-server:5223
SMPSERVER_TOR_SERVICE_VERSION: '3'
2023-05-14 00:22:15 +00:00
SMPSERVER_TOR_SERVICE_KEY: "{{ secrets.tor.simplexmq_smp_key }}"
2023-05-14 00:54:20 +00:00
XFTPSERVER_TOR_SERVICE_HOSTS: 443:xftp-server:443
XFTPSERVER_TOR_SERVICE_VERSION: '3'
XFTPSERVER_TOR_SERVICE_KEY: "{{ secrets.tor.simplexmq_xftp_key }}"
2023-04-20 21:34:25 +00:00
networks:
- name: tor