In between commit development coporate design for flock.town

This commit is contained in:
2025-02-19 20:46:14 +01:00
parent fce9c1a72d
commit fd5c10b103
26 changed files with 222 additions and 83 deletions

View File

@@ -0,0 +1,6 @@
# Nginx Homepage Role
This Ansible role configures an Nginx server to serve a static homepage. It handles domain configuration, SSL certificate retrieval with Let's Encrypt.
## Author Information
This role was created in 2023 by [Kevin Veen Birkenbach](https://www.veen.world/).

View File

@@ -0,0 +1,3 @@
dependencies:
- nginx-https
- git

View File

@@ -0,0 +1,6 @@
---
- name: generate {{domains[application_id]}}.conf
template:
src: "nginx.conf.j2"
dest: "{{nginx.directories.http.servers}}{{domains[application_id]}}.conf"
notify: restart nginx

View File

@@ -0,0 +1,22 @@
server
{
server_name {{domains[application_id]}};
{% include 'roles/letsencrypt/templates/ssl_header.j2' %}
{% include 'roles/nginx-modifier-all/templates/global.includes.conf.j2'%}
charset utf-8;
location /
{
root {{nginx.directories.homepage.html}};
index index.html index.htm;
}
location /.well-known/ {
alias {{nginx.directories.well_known}};
allow all;
default_type "text/plain";
autoindex on;
}
}

View File

@@ -0,0 +1 @@
application_id: "html_server"