mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Further feature implementation for flock.town
This commit is contained in:
@@ -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
|
@@ -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;
|
||||
|
@@ -1 +1,2 @@
|
||||
application_id: "file_server"
|
||||
application_id: "file_server"
|
||||
domain: "{{domains[application_id]}}"
|
Reference in New Issue
Block a user