parent
24c41f10ce
commit
25c2aff50c
|
@ -3,15 +3,17 @@
|
||||||
#
|
#
|
||||||
user: tudattr
|
user: tudattr
|
||||||
timezone: Europe/Berlin
|
timezone: Europe/Berlin
|
||||||
|
rclone_config: "/root/.config/rclone/"
|
||||||
|
puid: 1000
|
||||||
|
pgid: 1000
|
||||||
|
pk_path: "/mnt/veracrypt1/genesis"
|
||||||
|
|
||||||
local_domain: borg.land
|
local_domain: borg.land
|
||||||
local_subdomains: "@"
|
local_subdomains: "@"
|
||||||
remote_domain: tudattr.dev
|
remote_domain: tudattr.dev
|
||||||
remote_subdomains: "www,plex,status,"
|
remote_subdomains: "www,plex,status,"
|
||||||
rclone_config: "/root/.config/rclone/"
|
backup_domain: seyshiro.de
|
||||||
puid: 1000
|
backup_subdomains: "hass,qbit,zm,"
|
||||||
pgid: 1000
|
|
||||||
pk_path: "/media/veracrypt1/genesis"
|
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# aya01 - Disks
|
# aya01 - Disks
|
||||||
|
@ -243,6 +245,9 @@ swag_email: "me+swag@tudattr.dev"
|
||||||
swag_site_confs:
|
swag_site_confs:
|
||||||
- "templates/mii/swag/site-confs/plex.subdomain.conf"
|
- "templates/mii/swag/site-confs/plex.subdomain.conf"
|
||||||
- "templates/mii/swag/site-confs/uptime-kuma.subdomain.conf"
|
- "templates/mii/swag/site-confs/uptime-kuma.subdomain.conf"
|
||||||
|
# - "templates/mii/swag/site-confs/homeassistant.subdomain.conf"
|
||||||
|
# - "templates/mii/swag/site-confs/qbittorrent.subdomain.conf"
|
||||||
|
# - "templates/mii/swag/site-confs/zoneminder.subdomain.conf"
|
||||||
swag_remote_site_confs: "{{swag_config}}/nginx/site-confs/"
|
swag_remote_site_confs: "{{swag_config}}/nginx/site-confs/"
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -334,3 +339,18 @@ qbit_type: "openvpn"
|
||||||
qbit_ssl: "no"
|
qbit_ssl: "no"
|
||||||
qbit_lan: "192.168.20.0/24, 192.168.30.0/24, {{ docker_network }}"
|
qbit_lan: "192.168.20.0/24, 192.168.30.0/24, {{ docker_network }}"
|
||||||
qbit_dns: "{{ aya01_ip }}, {{ pi_ip }}, 1.1.1.1"
|
qbit_dns: "{{ aya01_ip }}, {{ pi_ip }}, 1.1.1.1"
|
||||||
|
|
||||||
|
#
|
||||||
|
# Home Assistant
|
||||||
|
#
|
||||||
|
|
||||||
|
hass_port: ""
|
||||||
|
hass_host: "hass"
|
||||||
|
|
||||||
|
#
|
||||||
|
# Tautulli
|
||||||
|
#
|
||||||
|
|
||||||
|
tautulli_port: "8181"
|
||||||
|
tautulli_host: "tautulli"
|
||||||
|
tautulli_config: "{{ docker_dir }}/{{ tautulli_host }}/config"
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
- include_tasks: time.yml
|
- include_tasks: time.yml
|
||||||
- include_tasks: essential.yml
|
- include_tasks: essential.yml
|
||||||
|
- include_tasks: sshd.yml
|
||||||
- include_tasks: aya01_fstab.yml
|
- include_tasks: aya01_fstab.yml
|
||||||
when: inventory_hostname == "aya01"
|
when: inventory_hostname == "aya01"
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
---
|
||||||
|
- name: Copy sshd_config
|
||||||
|
template:
|
||||||
|
src: templates/common/ssh/sshd_config
|
||||||
|
dest: /etc/ssh/sshd_config
|
||||||
|
mode: 0644
|
||||||
|
become: yes
|
||||||
|
register: sshd
|
||||||
|
|
||||||
|
- name: Restart sshd
|
||||||
|
service:
|
||||||
|
name: "sshd"
|
||||||
|
state: "restarted"
|
||||||
|
become: yes
|
||||||
|
when: sshd.changed
|
|
@ -0,0 +1,124 @@
|
||||||
|
# $OpenBSD: sshd_config,v 1.103 2018/04/09 20:41:22 tj Exp $
|
||||||
|
|
||||||
|
# This is the sshd server system-wide configuration file. See
|
||||||
|
# sshd_config(5) for more information.
|
||||||
|
|
||||||
|
# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin
|
||||||
|
|
||||||
|
# The strategy used for options in the default sshd_config shipped with
|
||||||
|
# OpenSSH is to specify options with their default value where
|
||||||
|
# possible, but leave them commented. Uncommented options override the
|
||||||
|
# default value.
|
||||||
|
|
||||||
|
Include /etc/ssh/sshd_config.d/*.conf
|
||||||
|
|
||||||
|
Protocol 2
|
||||||
|
#Port 22
|
||||||
|
#AddressFamily any
|
||||||
|
#ListenAddress 0.0.0.0
|
||||||
|
#ListenAddress ::
|
||||||
|
|
||||||
|
#HostKey /etc/ssh/ssh_host_rsa_key
|
||||||
|
#HostKey /etc/ssh/ssh_host_ecdsa_key
|
||||||
|
#HostKey /etc/ssh/ssh_host_ed25519_key
|
||||||
|
|
||||||
|
# Ciphers and keying
|
||||||
|
#RekeyLimit default none
|
||||||
|
|
||||||
|
# Logging
|
||||||
|
#SyslogFacility AUTH
|
||||||
|
#LogLevel INFO
|
||||||
|
|
||||||
|
# Authentication:
|
||||||
|
|
||||||
|
#LoginGraceTime 2m
|
||||||
|
PermitRootLogin no
|
||||||
|
#StrictModes yes
|
||||||
|
MaxAuthTries 3
|
||||||
|
#MaxSessions 10
|
||||||
|
|
||||||
|
PubkeyAuthentication yes
|
||||||
|
|
||||||
|
# Expect .ssh/authorized_keys2 to be disregarded by default in future.
|
||||||
|
#AuthorizedKeysFile .ssh/authorized_keys .ssh/authorized_keys2
|
||||||
|
|
||||||
|
#AuthorizedPrincipalsFile none
|
||||||
|
|
||||||
|
#AuthorizedKeysCommand none
|
||||||
|
#AuthorizedKeysCommandUser nobody
|
||||||
|
|
||||||
|
# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
|
||||||
|
#HostbasedAuthentication no
|
||||||
|
# Change to yes if you don't trust ~/.ssh/known_hosts for
|
||||||
|
# HostbasedAuthentication
|
||||||
|
#IgnoreUserKnownHosts no
|
||||||
|
# Don't read the user's ~/.rhosts and ~/.shosts files
|
||||||
|
#IgnoreRhosts yes
|
||||||
|
|
||||||
|
# To disable tunneled clear text passwords, change to no here!
|
||||||
|
PasswordAuthentication no
|
||||||
|
PermitEmptyPasswords no
|
||||||
|
|
||||||
|
# Change to yes to enable challenge-response passwords (beware issues with
|
||||||
|
# some PAM modules and threads)
|
||||||
|
ChallengeResponseAuthentication no
|
||||||
|
|
||||||
|
# Kerberos options
|
||||||
|
#KerberosAuthentication no
|
||||||
|
#KerberosOrLocalPasswd yes
|
||||||
|
#KerberosTicketCleanup yes
|
||||||
|
#KerberosGetAFSToken no
|
||||||
|
|
||||||
|
# GSSAPI options
|
||||||
|
#GSSAPIAuthentication no
|
||||||
|
#GSSAPICleanupCredentials yes
|
||||||
|
#GSSAPIStrictAcceptorCheck yes
|
||||||
|
#GSSAPIKeyExchange no
|
||||||
|
|
||||||
|
# Set this to 'yes' to enable PAM authentication, account processing,
|
||||||
|
# and session processing. If this is enabled, PAM authentication will
|
||||||
|
# be allowed through the ChallengeResponseAuthentication and
|
||||||
|
# PasswordAuthentication. Depending on your PAM configuration,
|
||||||
|
# PAM authentication via ChallengeResponseAuthentication may bypass
|
||||||
|
# the setting of "PermitRootLogin without-password".
|
||||||
|
# If you just want the PAM account and session checks to run without
|
||||||
|
# PAM authentication, then enable this but set PasswordAuthentication
|
||||||
|
# and ChallengeResponseAuthentication to 'no'.
|
||||||
|
UsePAM yes
|
||||||
|
|
||||||
|
AllowAgentForwarding no
|
||||||
|
AllowTcpForwarding no
|
||||||
|
#GatewayPorts no
|
||||||
|
X11Forwarding no
|
||||||
|
#X11DisplayOffset 10
|
||||||
|
#X11UseLocalhost yes
|
||||||
|
#PermitTTY yes
|
||||||
|
PrintMotd no
|
||||||
|
#PrintLastLog yes
|
||||||
|
TCPKeepAlive no
|
||||||
|
#PermitUserEnvironment no
|
||||||
|
#Compression delayed
|
||||||
|
#ClientAliveInterval 0
|
||||||
|
ClientAliveCountMax 2
|
||||||
|
UseDNS yes
|
||||||
|
#PidFile /var/run/sshd.pid
|
||||||
|
#MaxStartups 10:30:100
|
||||||
|
#PermitTunnel no
|
||||||
|
#ChrootDirectory none
|
||||||
|
#VersionAddendum none
|
||||||
|
|
||||||
|
# no default banner path
|
||||||
|
#Banner none
|
||||||
|
|
||||||
|
# Allow client to pass locale environment variables
|
||||||
|
AcceptEnv LANG LC_*
|
||||||
|
|
||||||
|
# override default of no subsystems
|
||||||
|
Subsystem sftp /usr/lib/openssh/sftp-server
|
||||||
|
|
||||||
|
# Example of overriding settings on a per-user basis
|
||||||
|
#Match User anoncvs
|
||||||
|
# X11Forwarding no
|
||||||
|
# AllowTcpForwarding no
|
||||||
|
# PermitTTY no
|
||||||
|
# ForceCommand cvs server
|
|
@ -32,6 +32,10 @@
|
||||||
tags:
|
tags:
|
||||||
- plex
|
- plex
|
||||||
|
|
||||||
|
- include_tasks: tautulli.yml
|
||||||
|
tags:
|
||||||
|
- tautulli
|
||||||
|
|
||||||
- include_tasks: sonarr.yml
|
- include_tasks: sonarr.yml
|
||||||
tags:
|
tags:
|
||||||
- sonarr
|
- sonarr
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
---
|
||||||
|
- name: Create tautulli-config directory
|
||||||
|
file:
|
||||||
|
path: "{{ tautulli_config }}"
|
||||||
|
owner: "{{ puid }}"
|
||||||
|
group: "{{ pgid }}"
|
||||||
|
mode: '755'
|
||||||
|
state: directory
|
||||||
|
become: yes
|
|
@ -1,8 +1,8 @@
|
||||||
version: '3'
|
version: '3'
|
||||||
services:
|
services:
|
||||||
traefik:
|
traefik:
|
||||||
container_name: traefik
|
|
||||||
image: traefik:latest
|
image: traefik:latest
|
||||||
|
container_name: traefik
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
networks:
|
networks:
|
||||||
net: {}
|
net: {}
|
||||||
|
@ -16,9 +16,9 @@ services:
|
||||||
- "{{ traefik_admin_port}}:8080"
|
- "{{ traefik_admin_port}}:8080"
|
||||||
|
|
||||||
db:
|
db:
|
||||||
container_name: zoneminder_db
|
|
||||||
image: mariadb
|
image: mariadb
|
||||||
restart: always
|
container_name: zoneminder_db
|
||||||
|
restart: unless-stopped
|
||||||
networks:
|
networks:
|
||||||
- zoneminder
|
- zoneminder
|
||||||
volumes:
|
volumes:
|
||||||
|
@ -33,9 +33,9 @@ services:
|
||||||
- "MAX_LOG_NUMBER=20"
|
- "MAX_LOG_NUMBER=20"
|
||||||
- "TZ=Europe/Berlin"
|
- "TZ=Europe/Berlin"
|
||||||
zoneminder:
|
zoneminder:
|
||||||
container_name: zoneminder
|
|
||||||
image: ghcr.io/zoneminder-containers/zoneminder-base:latest
|
image: ghcr.io/zoneminder-containers/zoneminder-base:latest
|
||||||
restart: always
|
container_name: zoneminder
|
||||||
|
restart: unless-stopped
|
||||||
stop_grace_period: 45s
|
stop_grace_period: 45s
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
|
@ -67,8 +67,8 @@ services:
|
||||||
- "traefik.http.services.{{ zoneminder_host }}.loadbalancer.server.port=80"
|
- "traefik.http.services.{{ zoneminder_host }}.loadbalancer.server.port=80"
|
||||||
|
|
||||||
pihole:
|
pihole:
|
||||||
container_name: pihole
|
|
||||||
image: pihole/pihole:latest
|
image: pihole/pihole:latest
|
||||||
|
container_name: pihole
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
networks:
|
networks:
|
||||||
- net
|
- net
|
||||||
|
@ -101,8 +101,8 @@ services:
|
||||||
- "traefik.http.services.{{ pihole_host }}.loadbalancer.server.port=80"
|
- "traefik.http.services.{{ pihole_host }}.loadbalancer.server.port=80"
|
||||||
|
|
||||||
syncthing:
|
syncthing:
|
||||||
container_name: syncthing
|
|
||||||
image: syncthing/syncthing
|
image: syncthing/syncthing
|
||||||
|
container_name: syncthing
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
networks:
|
networks:
|
||||||
- net
|
- net
|
||||||
|
@ -161,7 +161,7 @@ services:
|
||||||
kuma:
|
kuma:
|
||||||
container_name: kuma
|
container_name: kuma
|
||||||
image: louislam/uptime-kuma:1
|
image: louislam/uptime-kuma:1
|
||||||
restart: always
|
restart: unless-stopped
|
||||||
networks:
|
networks:
|
||||||
- net
|
- net
|
||||||
environment:
|
environment:
|
||||||
|
@ -180,7 +180,7 @@ services:
|
||||||
plex:
|
plex:
|
||||||
image: lscr.io/linuxserver/plex:latest
|
image: lscr.io/linuxserver/plex:latest
|
||||||
container_name: plex
|
container_name: plex
|
||||||
restart: always
|
restart: unless-stopped
|
||||||
networks:
|
networks:
|
||||||
- net
|
- net
|
||||||
ports:
|
ports:
|
||||||
|
@ -210,7 +210,7 @@ services:
|
||||||
sonarr:
|
sonarr:
|
||||||
image: lscr.io/linuxserver/sonarr:latest
|
image: lscr.io/linuxserver/sonarr:latest
|
||||||
container_name: sonarr
|
container_name: sonarr
|
||||||
restart: always
|
restart: unless-stopped
|
||||||
networks:
|
networks:
|
||||||
- net
|
- net
|
||||||
environment:
|
environment:
|
||||||
|
@ -231,7 +231,7 @@ services:
|
||||||
radarr:
|
radarr:
|
||||||
image: lscr.io/linuxserver/radarr:latest
|
image: lscr.io/linuxserver/radarr:latest
|
||||||
container_name: radarr
|
container_name: radarr
|
||||||
restart: always
|
restart: unless-stopped
|
||||||
networks:
|
networks:
|
||||||
- net
|
- net
|
||||||
environment:
|
environment:
|
||||||
|
@ -252,7 +252,7 @@ services:
|
||||||
lidarr:
|
lidarr:
|
||||||
image: lscr.io/linuxserver/lidarr:latest
|
image: lscr.io/linuxserver/lidarr:latest
|
||||||
container_name: lidarr
|
container_name: lidarr
|
||||||
restart: always
|
restart: unless-stopped
|
||||||
networks:
|
networks:
|
||||||
- net
|
- net
|
||||||
environment:
|
environment:
|
||||||
|
@ -273,7 +273,7 @@ services:
|
||||||
prowlarr:
|
prowlarr:
|
||||||
image: lscr.io/linuxserver/prowlarr:latest
|
image: lscr.io/linuxserver/prowlarr:latest
|
||||||
container_name: prowlarr
|
container_name: prowlarr
|
||||||
restart: always
|
restart: unless-stopped
|
||||||
networks:
|
networks:
|
||||||
- net
|
- net
|
||||||
environment:
|
environment:
|
||||||
|
@ -292,7 +292,7 @@ services:
|
||||||
pastebin:
|
pastebin:
|
||||||
image: wantguns/bin
|
image: wantguns/bin
|
||||||
container_name: pastebin
|
container_name: pastebin
|
||||||
restart: always
|
restart: unless-stopped
|
||||||
networks:
|
networks:
|
||||||
- net
|
- net
|
||||||
ports:
|
ports:
|
||||||
|
@ -313,7 +313,7 @@ services:
|
||||||
qbittorrentvpn:
|
qbittorrentvpn:
|
||||||
image: dyonr/qbittorrentvpn
|
image: dyonr/qbittorrentvpn
|
||||||
container_name: {{ qbit_host }}
|
container_name: {{ qbit_host }}
|
||||||
restart: always
|
restart: unless-stopped
|
||||||
privileged: true
|
privileged: true
|
||||||
networks:
|
networks:
|
||||||
- net
|
- net
|
||||||
|
@ -337,6 +337,24 @@ services:
|
||||||
- "traefik.http.routers.{{ qbit_host }}.rule=Host(`{{ qbit_host }}.{{ aya01_host }}.{{ local_domain }}`)"
|
- "traefik.http.routers.{{ qbit_host }}.rule=Host(`{{ qbit_host }}.{{ aya01_host }}.{{ local_domain }}`)"
|
||||||
- "traefik.http.services.{{ qbit_host }}.loadbalancer.server.port=8080"
|
- "traefik.http.services.{{ qbit_host }}.loadbalancer.server.port=8080"
|
||||||
|
|
||||||
|
tautulli:
|
||||||
|
image: lscr.io/linuxserver/tautulli:latest
|
||||||
|
container_name: tautulli
|
||||||
|
restart: unless-stopped
|
||||||
|
networks:
|
||||||
|
- net
|
||||||
|
environment:
|
||||||
|
- PUID={{ puid }}
|
||||||
|
- PGID={{ pgid}}
|
||||||
|
- TZ={{ timezone }}
|
||||||
|
volumes:
|
||||||
|
- {{ tautulli_config}}:/config
|
||||||
|
ports:
|
||||||
|
- {{ tautulli_port }}:8181
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.http.routers.{{ tautulli_host }}.rule=Host(`{{ tautulli_host }}.{{ aya01_host }}.{{ local_domain }}`)"
|
||||||
|
- "traefik.http.services.{{ tautulli_host }}.loadbalancer.server.port={{ tautulli_port }}"
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
zoneminder:
|
zoneminder:
|
||||||
|
|
|
@ -23,7 +23,7 @@ services:
|
||||||
- PROPAGATION= #optional
|
- PROPAGATION= #optional
|
||||||
- EMAIL={{ swag_email }} #optional
|
- EMAIL={{ swag_email }} #optional
|
||||||
- ONLY_SUBDOMAINS=false #optional
|
- ONLY_SUBDOMAINS=false #optional
|
||||||
- EXTRA_DOMAINS= #optional
|
- EXTRA_DOMAINS= # qbit.seyshiro.de,zm.seyshiro.de,hass.seyshiro.de
|
||||||
- STAGING=false #optional
|
- STAGING=false #optional
|
||||||
volumes:
|
volumes:
|
||||||
- "{{ swag_config }}:/config"
|
- "{{ swag_config }}:/config"
|
||||||
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
server {
|
||||||
|
listen 443 ssl;
|
||||||
|
listen [::]:443 ssl;
|
||||||
|
|
||||||
|
server_name {{ hass_host }}.{{ backup_domain }};
|
||||||
|
|
||||||
|
include /config/nginx/ssl.conf;
|
||||||
|
|
||||||
|
client_max_body_size 0;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
include /config/nginx/resolver.conf;
|
||||||
|
proxy_pass http://{{ hass_host }}.{{ pi_host }}.{{ local_domain }};
|
||||||
|
}
|
||||||
|
|
||||||
|
location ~ ^/(api|local|media)/ {
|
||||||
|
include /config/nginx/resolver.conf;
|
||||||
|
proxy_pass http://{{ hass_host }}.{{ pi_host }}.{{ local_domain }};
|
||||||
|
}
|
||||||
|
}
|
|
@ -12,7 +12,7 @@ server {
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
include /config/nginx/resolver.conf;
|
include /config/nginx/resolver.conf;
|
||||||
proxy_pass http://172-16-69-11.{{ vault_plex_server_id }}.plex.direct:{{ plex_port }}/
|
proxy_pass http://{{ aya01_ip | replace('.', '-') }}.{{ vault_plex_server_id }}.plex.direct:{{ plex_port }}/;
|
||||||
|
|
||||||
proxy_set_header X-Plex-Client-Identifier $http_x_plex_client_identifier;
|
proxy_set_header X-Plex-Client-Identifier $http_x_plex_client_identifier;
|
||||||
proxy_set_header X-Plex-Device $http_x_plex_device;
|
proxy_set_header X-Plex-Device $http_x_plex_device;
|
||||||
|
|
|
@ -0,0 +1,84 @@
|
||||||
|
server {
|
||||||
|
listen 443 ssl;
|
||||||
|
listen [::]:443 ssl;
|
||||||
|
|
||||||
|
server_name {{ qbit_host }}.{{ backup_domain }};
|
||||||
|
|
||||||
|
include /config/nginx/ssl.conf;
|
||||||
|
|
||||||
|
client_max_body_size 0;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
include /config/nginx/resolver.conf;
|
||||||
|
proxy_pass http://{{ qbit_host }}.{{ aya01_host }}.{{ local_domain }};
|
||||||
|
|
||||||
|
proxy_set_header Referer '';
|
||||||
|
proxy_set_header X-Forwarded-Host $host;
|
||||||
|
}
|
||||||
|
|
||||||
|
location ~ (/qbittorrent)?/api {
|
||||||
|
include /config/nginx/proxy.conf;
|
||||||
|
include /config/nginx/resolver.conf;
|
||||||
|
proxy_pass http://{{ qbit_host }}.{{ aya01_host }}.{{ local_domain }};
|
||||||
|
|
||||||
|
rewrite /qbittorrent(.*) $1 break;
|
||||||
|
|
||||||
|
proxy_set_header Referer '';
|
||||||
|
proxy_set_header X-Forwarded-Host $host;
|
||||||
|
}
|
||||||
|
|
||||||
|
location ~ (/qbittorrent)?/command {
|
||||||
|
include /config/nginx/proxy.conf;
|
||||||
|
include /config/nginx/resolver.conf;
|
||||||
|
proxy_pass http://{{ qbit_host }}.{{ aya01_host }}.{{ local_domain }};
|
||||||
|
|
||||||
|
rewrite /qbittorrent(.*) $1 break;
|
||||||
|
|
||||||
|
proxy_set_header Referer '';
|
||||||
|
proxy_set_header X-Forwarded-Host $host;
|
||||||
|
}
|
||||||
|
|
||||||
|
location ~ (/qbittorrent)?/query {
|
||||||
|
include /config/nginx/proxy.conf;
|
||||||
|
include /config/nginx/resolver.conf;
|
||||||
|
proxy_pass http://{{ qbit_host }}.{{ aya01_host }}.{{ local_domain }};
|
||||||
|
|
||||||
|
rewrite /qbittorrent(.*) $1 break;
|
||||||
|
|
||||||
|
proxy_set_header Referer '';
|
||||||
|
proxy_set_header X-Forwarded-Host $host;
|
||||||
|
}
|
||||||
|
|
||||||
|
location ~ (/qbittorrent)?/login {
|
||||||
|
include /config/nginx/proxy.conf;
|
||||||
|
include /config/nginx/resolver.conf;
|
||||||
|
proxy_pass http://{{ qbit_host }}.{{ aya01_host }}.{{ local_domain }};
|
||||||
|
|
||||||
|
rewrite /qbittorrent(.*) $1 break;
|
||||||
|
|
||||||
|
proxy_set_header Referer '';
|
||||||
|
proxy_set_header X-Forwarded-Host $host;
|
||||||
|
}
|
||||||
|
|
||||||
|
location ~ (/qbittorrent)?/sync {
|
||||||
|
include /config/nginx/proxy.conf;
|
||||||
|
include /config/nginx/resolver.conf;
|
||||||
|
proxy_pass http://{{ qbit_host }}.{{ aya01_host }}.{{ local_domain }};
|
||||||
|
|
||||||
|
rewrite /qbittorrent(.*) $1 break;
|
||||||
|
|
||||||
|
proxy_set_header Referer '';
|
||||||
|
proxy_set_header X-Forwarded-Host $host;
|
||||||
|
}
|
||||||
|
|
||||||
|
location ~ (/qbittorrent)?/scripts {
|
||||||
|
include /config/nginx/proxy.conf;
|
||||||
|
include /config/nginx/resolver.conf;
|
||||||
|
proxy_pass http://{{ qbit_host }}.{{ aya01_host }}.{{ local_domain }};
|
||||||
|
|
||||||
|
rewrite /qbittorrent(.*) $1 break;
|
||||||
|
|
||||||
|
proxy_set_header Referer '';
|
||||||
|
proxy_set_header X-Forwarded-Host $host;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,15 @@
|
||||||
|
server {
|
||||||
|
listen 443 ssl;
|
||||||
|
listen [::]:443 ssl;
|
||||||
|
|
||||||
|
server_name {{ zoneminder_host }}.{{ backup_domain }};
|
||||||
|
|
||||||
|
include /config/nginx/ssl.conf;
|
||||||
|
|
||||||
|
client_max_body_size 0;
|
||||||
|
location / {
|
||||||
|
include /config/nginx/resolver.conf;
|
||||||
|
proxy_pass http://{{ zoneminder_host }}.{{ aya01_host }}.{{ local_domain }};
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,11 @@
|
||||||
|
---
|
||||||
|
- name: Download {{ exporter_node_dl_filename }}
|
||||||
|
get_url:
|
||||||
|
url: {{ exporter_node_dl_url }}
|
||||||
|
dest: {{ exporter_node_full_path }}
|
||||||
|
mode: '0664'
|
||||||
|
|
||||||
|
- name: Extract {{ exporter_node_dl_filename }}
|
||||||
|
unarchive:
|
||||||
|
src: {{ exporter_node_full_path }}
|
||||||
|
dest: {{ exporter_node_dl_path }}/node_exporter
|
|
@ -0,0 +1,3 @@
|
||||||
|
- include_tasks: install.yml
|
||||||
|
- include_tasks: systemd.yml
|
||||||
|
- include_tasks: run.yml
|
Loading…
Reference in New Issue