Added bin as pastbin internally and made vars more configurable

Signed-off-by: TuDatTr <tuan-dat.tran@tudattr.dev>
This commit is contained in:
TuDatTr
2023-04-17 19:23:48 +02:00
parent ced3ff35ad
commit c48abb4512
8 changed files with 62 additions and 17 deletions

View File

@@ -48,6 +48,10 @@
tags:
- prowlarr
- include_tasks: bin.yml
tags:
- bin
- name: Copy the compose file
template:
src: templates/aya01/compose.yaml

View File

@@ -0,0 +1,9 @@
---
- name: Create bin-config directory
file:
path: "{{ bin_upload }}"
owner: "{{ puid }}"
group: "{{ pgid }}"
mode: '755'
state: directory
become: true

View File

@@ -290,6 +290,27 @@ services:
- "traefik.http.routers.{{prowlarr_host}}.rule=Host(`{{ prowlarr_host }}.{{ aya01_host }}.{{local_domain}}`)"
- "traefik.http.services.{{prowlarr_host}}.loadbalancer.server.port={{ prowlarr_port }}"
pastebin:
image: wantguns/bin
container_name: pastebin
restart: always
networks:
- net
ports:
- "{{ bin_port }}:{{ bin_port }}"
environment:
- PUID={{ puid }}
- PGID={{ pgid }}
- TZ={{ timezone }}
- ROCKET_PORT={{ bin_port }}
- HOST_URL={{ bin_host }}.{{ aya01_host }}.{{ local_domain }}
volumes:
- {{ bin_upload }}:/app/upload
labels:
- "traefik.enable=true"
- "traefik.http.routers.{{ bin_host }}.rule=Host(`{{ bin_host }}.{{ aya01_host }}.{{ local_domain }}`)"
- "traefik.http.services.{{ bin_host }}.loadbalancer.server.port={{ bin_port }}"
networks:
zoneminder:
driver: bridge

View File

@@ -2,7 +2,7 @@ server {
listen 443 ssl;
listen [::]:443 ssl;
server_name plex.tudattr.dev;
server_name {{ plex_host }}.{{ remote_domain }};
include /config/nginx/ssl.conf;

View File

@@ -2,7 +2,7 @@ server {
listen 443 ssl;
listen [::]:443 ssl;
server_name status.tudattr.dev;
server_name {{ kuma_host }}.{{ remote_domain }};
include /config/nginx/ssl.conf;
@@ -10,7 +10,7 @@ server {
location / {
include /config/nginx/resolver.conf;
proxy_pass http://uptime.aya01.borg.land;
proxy_pass http://{{ kuma_host }}.{{ aya01_host }}.{{ local_domain }};
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}

View File

@@ -2,8 +2,8 @@
"settings": [
{
"provider": "namecheap",
"domain": "borg.land",
"host": "@",
"domain": "{{ local_domain }}",
"host": "{{ local_subdomains }}",
"password": "{{ vault_ddns_borgland_password }}",
"provider_ip": true
}