Further feature implementation for flock.town

This commit is contained in:
2025-02-19 22:03:17 +01:00
parent dfa740456f
commit 7d24e1d414
20 changed files with 424 additions and 143 deletions

View File

@@ -1,8 +1,14 @@
---
- name: "include role nginx-modifier-all for {{domain}}"
include_role:
name: nginx-modifier-all
- name: "include role nginx-https-recieve-certificate for {{domain}}"
include_role:
name: nginx-https-recieve-certificate
- name: "generate {{domains[application_id]}}.conf"
template:
src: "nginx.conf.j2"
dest: "{{nginx.directories.http.servers}}{{domains[application_id]}}.conf"
notify: restart nginx
var:
domain: "{{domains[application_id]}}"
notify: restart nginx

View File

@@ -9,14 +9,14 @@ server
location /
{
alias {{nginx.directories.homepage.files}}; {# Path to your file directory #}
autoindex on; {# Enable directory listing #}
autoindex_exact_size off; {# Display sizes in a human-readable format #}
autoindex_localtime on; {# Show local time #}
alias {{nginx.directories.data.files}}; {# Path to your file directory #}
autoindex on; {# Enable directory listing #}
autoindex_exact_size off; {# Display sizes in a human-readable format #}
autoindex_localtime on; {# Show local time #}
}
location /.well-known/ {
alias {{nginx.directories.well_known}};
alias {{nginx.directories.data.well_known}};
allow all;
default_type "text/plain";
autoindex on;

View File

@@ -1 +1,2 @@
application_id: "file_server"
application_id: "file_server"
domain: "{{domains[application_id]}}"