Browse Source

Chaque utilisateurice sait trouver son onion (closes #5)

pull/31/head
southerntofu 1 year ago
parent
commit
22adc965d2
  1. 1
      i18n/en.yml
  2. 1
      i18n/fr.yml
  3. 7
      roles/webserver/tasks/onions_perso.yml

1
i18n/en.yml

@ -57,6 +57,7 @@ webserver-personal-pages: Setup personal pages
webserver-bucket-size: Configure webserver for long domain names (onions)
# roles/webserver/tasks/onions_perso.yml
webserver-onion-hostname: Read personal onion
webserver-onion-giveuser: Tell user about their onion address
webserver-onion-config: Configure personal onion page
webserver-onion-symlink: Enable personal onion page config
# roles/webserver/tasks/packages.yml

1
i18n/fr.yml

@ -56,6 +56,7 @@ webserver-personal-pages: Mettre en place les pages perso
webserver-bucket-size: Configurer le serveur web pour les longs domaines (.onion)
# roles/webserver/tasks/onions_perso.yml
webserver-onion-hostname: Récupérer l'onion perso
webserver-onion-giveuser: Indiquer à l'utilisateurice l'adresse de son onion
webserver-onion-config: Configurer les pages perso en onion
webserver-onion-symlink: Activer la configuration des pages perso en onion
# roles/webserver/tasks/packages.yml

7
roles/webserver/tasks/onions_perso.yml

@ -3,6 +3,13 @@
register: web_onion
changed_when: false
- name: webserver-onion-giveuser
copy:
src: "/var/lib/tor/{{ item.name }}/hostname"
remote_src: true
dest: "/home/{{ item.name }}/onion"
mode: 0744
- name: webserver-onion-config
template:
src: ../files/onion.conf.j2

Loading…
Cancel
Save