feat: use subdirectories by domain for multi-domain suppport for one user

This commit is contained in:
moanos [he/him] 2023-11-15 11:46:02 +01:00
parent b4e610fc89
commit 9cc8043bb4
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@
user: name="{{ site.user }}" shell=/bin/bash home="{{ static_site_server_base_path }}/{{ site.user }}" createhome=yes group="{{ site.user }}" groups= state=present
- name: Ensure public path is present
ansible.builtin.file: path="{{ static_site_server_base_path }}/{{ site.user }}/public" owner="{{ site.user }}" group="{{ site.user }}" mode=0700 state=directory
ansible.builtin.file: path="{{ static_site_server_base_path }}/{{ site.user }}/{{ site.domain }}" owner="{{ site.user }}" group="{{ site.user }}" mode=0700 state=directory
- name: Ensure .ssh path is present
ansible.builtin.file: path="{{ static_site_server_base_path }}/{{ site.user }}/.ssh" owner="{{ site.user }}" group="{{ site.user }}" mode=0700 state=directory

View File

@ -11,7 +11,7 @@ services:
- SERVER_ROOT=/public
- SERVER_LOG_LEVEL=info
volumes:
- {{ static_site_server_base_path }}/{{ site.user }}/public:/public
- {{ static_site_server_base_path }}/{{ site.user }}/{{ site.domain }}:/public
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik"