style: add Ansible-managed headers
Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
parent
02b44273db
commit
d0fc1cd3d6
27 changed files with 54 additions and 0 deletions
|
@ -1,3 +1,5 @@
|
||||||
|
# {{ ansible_managed }}
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Certbot renewal
|
Description=Certbot renewal
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# {{ ansible_managed }}
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Run certbot once a week
|
Description=Run certbot once a week
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
; {{ ansible_managed }}
|
||||||
|
|
||||||
email = {{ certbot_email }}
|
email = {{ certbot_email }}
|
||||||
|
|
||||||
agree-tos = true
|
agree-tos = true
|
||||||
|
|
|
@ -1,2 +1,4 @@
|
||||||
|
; {{ ansible_managed }}
|
||||||
|
|
||||||
dns_porkbun_key={{ porkbun_apikey }}
|
dns_porkbun_key={{ porkbun_apikey }}
|
||||||
dns_porkbun_secret={{ porkbun_secretapikey }}
|
dns_porkbun_secret={{ porkbun_secretapikey }}
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# {{ ansible_managed }}
|
||||||
|
|
||||||
[WebService]
|
[WebService]
|
||||||
Origins = https://cockpit.{{ host_fqdn }} wss://cockpit.{{ host_fqdn }}
|
Origins = https://cockpit.{{ host_fqdn }} wss://cockpit.{{ host_fqdn }}
|
||||||
ProtocolHeader = X-Forwarded-Proto
|
ProtocolHeader = X-Forwarded-Proto
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# {{ ansible_managed }}
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=DDNS Update
|
Description=DDNS Update
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# {{ ansible_managed }}
|
||||||
|
|
||||||
DOMAIN={{ ddns_domain }}
|
DOMAIN={{ ddns_domain }}
|
||||||
SUBDOMAINS={{ ','.join(ddns_subdomains) }}
|
SUBDOMAINS={{ ','.join(ddns_subdomains) }}
|
||||||
APIKEY={{ porkbun_apikey }}
|
APIKEY={{ porkbun_apikey }}
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# {{ ansible_managed }}
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Forgejo
|
Description=Forgejo
|
||||||
|
|
||||||
|
|
|
@ -1,2 +1,4 @@
|
||||||
|
# {{ ansible_managed }}
|
||||||
|
|
||||||
[Network]
|
[Network]
|
||||||
NetworkName=forgejo
|
NetworkName=forgejo
|
||||||
|
|
|
@ -1,2 +1,4 @@
|
||||||
|
# {{ ansible_managed }}
|
||||||
|
|
||||||
[Volume]
|
[Volume]
|
||||||
VolumeName=forgejo-data
|
VolumeName=forgejo-data
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# {{ ansible_managed }}
|
||||||
|
|
||||||
# For more information on configuration, see:
|
# For more information on configuration, see:
|
||||||
# * Official English Documentation: http://nginx.org/en/docs/
|
# * Official English Documentation: http://nginx.org/en/docs/
|
||||||
# * Official Russian Documentation: http://nginx.org/ru/docs/
|
# * Official Russian Documentation: http://nginx.org/ru/docs/
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# {{ ansible_managed }}
|
||||||
|
|
||||||
proxy_set_header Host $http_host;
|
proxy_set_header Host $http_host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# {{ ansible_managed }}
|
||||||
|
|
||||||
http {
|
http {
|
||||||
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
||||||
'$status $body_bytes_sent "$http_referer" '
|
'$status $body_bytes_sent "$http_referer" '
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# {{ ansible_managed }}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
include ssl.conf;
|
include ssl.conf;
|
||||||
include fastcgi.conf;
|
include fastcgi.conf;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# {{ ansible_managed }}
|
||||||
|
|
||||||
upstream {{ proxy_domain }} {
|
upstream {{ proxy_domain }} {
|
||||||
server {{ proxy_upstream }};
|
server {{ proxy_upstream }};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# {{ ansible_managed }}
|
||||||
|
|
||||||
listen 443 ssl http2;
|
listen 443 ssl http2;
|
||||||
|
|
||||||
ssl_certificate /etc/letsencrypt/live/{{ nginx_certname }}/fullchain.pem;
|
ssl_certificate /etc/letsencrypt/live/{{ nginx_certname }}/fullchain.pem;
|
||||||
|
|
|
@ -1 +1,3 @@
|
||||||
|
# {{ ansible_managed }}
|
||||||
|
|
||||||
TrustedUserCAKeys /etc/ssh/sshd_config.d/trusted-user-ca-keys.pem
|
TrustedUserCAKeys /etc/ssh/sshd_config.d/trusted-user-ca-keys.pem
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# {{ ansible_managed }}
|
||||||
|
|
||||||
# Port
|
# Port
|
||||||
Port {{ sshd_port }}
|
Port {{ sshd_port }}
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# {{ ansible_managed }}
|
||||||
|
|
||||||
HostCertificate /etc/ssh/sshd_config.d/ssh_host_rsa_key-cert.pub
|
HostCertificate /etc/ssh/sshd_config.d/ssh_host_rsa_key-cert.pub
|
||||||
HostCertificate /etc/ssh/sshd_config.d/ssh_host_ecdsa_key-cert.pub
|
HostCertificate /etc/ssh/sshd_config.d/ssh_host_ecdsa_key-cert.pub
|
||||||
HostCertificate /etc/ssh/sshd_config.d/ssh_host_ed25519_key-cert.pub
|
HostCertificate /etc/ssh/sshd_config.d/ssh_host_ed25519_key-cert.pub
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# {{ ansible_managed }}
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=The Lounge
|
Description=The Lounge
|
||||||
|
|
||||||
|
|
|
@ -1,2 +1,4 @@
|
||||||
|
# {{ ansible_managed }}
|
||||||
|
|
||||||
[Volume]
|
[Volume]
|
||||||
VolumeName=thelounge-data
|
VolumeName=thelounge-data
|
||||||
|
|
|
@ -1 +1,3 @@
|
||||||
|
# {{ ansible_managed }}
|
||||||
|
|
||||||
d /var/tmp/{{ target_user }} 0740 {{ target_user }} {{ target_group }} {{ tmpfiles_retention }}
|
d /var/tmp/{{ target_user }} 0740 {{ target_user }} {{ target_group }} {{ tmpfiles_retention }}
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# {{ ansible_managed }}
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Vaultwarden
|
Description=Vaultwarden
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# {{ ansible_managed }}
|
||||||
|
|
||||||
DATABASE_URL=postgresql://{{ vaultwarden_db_user }}:{{ vaultwarden_db_pass | urlencode }}@{{ vaultwarden_db_host }}/{{ vaultwarden_db_name }}
|
DATABASE_URL=postgresql://{{ vaultwarden_db_user }}:{{ vaultwarden_db_pass | urlencode }}@{{ vaultwarden_db_host }}/{{ vaultwarden_db_name }}
|
||||||
|
|
||||||
DOMAIN=https://{{ vaultwarden_address }}
|
DOMAIN=https://{{ vaultwarden_address }}
|
||||||
|
|
|
@ -1,2 +1,4 @@
|
||||||
|
# {{ ansible_managed }}
|
||||||
|
|
||||||
[Network]
|
[Network]
|
||||||
NetworkName=vaultwarden
|
NetworkName=vaultwarden
|
||||||
|
|
|
@ -1,2 +1,4 @@
|
||||||
|
# {{ ansible_managed }}
|
||||||
|
|
||||||
[Volume]
|
[Volume]
|
||||||
VolumeName=vaultwarden-data
|
VolumeName=vaultwarden-data
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# {{ ansible_managed }}
|
||||||
|
|
||||||
[Interface]
|
[Interface]
|
||||||
# Assign the static IP
|
# Assign the static IP
|
||||||
Address = {{ address }}
|
Address = {{ address }}
|
||||||
|
|
Loading…
Reference in a new issue