feat: use subdirectories by domain for multi-domain suppport for one user
This commit is contained in:
parent
b4e610fc89
commit
9cc8043bb4
@ -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
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user