add kennel
This commit is contained in:
parent
5470b67617
commit
c0a182350c
|
@ -30,5 +30,8 @@
|
||||||
- name: Website for hatecomputers.club
|
- name: Website for hatecomputers.club
|
||||||
ansible.builtin.import_playbook: playbooks/deploy-hatecomputers-club.yml
|
ansible.builtin.import_playbook: playbooks/deploy-hatecomputers-club.yml
|
||||||
|
|
||||||
|
- name: Deploy kennel
|
||||||
|
ansible.builtin.import_playbook: playbooks/deploy-kennel.yml
|
||||||
|
|
||||||
- name: Deploy borg
|
- name: Deploy borg
|
||||||
ansible.builtin.import_playbook: playbooks/deploy-borg.yml
|
ansible.builtin.import_playbook: playbooks/deploy-borg.yml
|
||||||
|
|
|
@ -39,3 +39,6 @@ himmel.int.infra.hatecomputers.club ansible_user=root ansible_connection=ssh
|
||||||
[borg]
|
[borg]
|
||||||
himmel.int.infra.hatecomputers.club ansible_user=root ansible_connection=ssh
|
himmel.int.infra.hatecomputers.club ansible_user=root ansible_connection=ssh
|
||||||
fern.int.infra.hatecomputers.club ansible_user=root ansible_connection=ssh
|
fern.int.infra.hatecomputers.club ansible_user=root ansible_connection=ssh
|
||||||
|
|
||||||
|
[kennel]
|
||||||
|
himmel.int.infra.hatecomputers.club ansible_user=root ansible_connection=ssh
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
- name: kennel.hatecomputers.club setup
|
||||||
|
hosts: kennel
|
||||||
|
roles:
|
||||||
|
- kennel
|
|
@ -0,0 +1,23 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
- name: Ensure kennel docker/compose exist
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: /etc/docker/compose/kennel
|
||||||
|
state: directory
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: 0700
|
||||||
|
|
||||||
|
- name: Build kennel docker-compose.yml.j2
|
||||||
|
ansible.builtin.template:
|
||||||
|
src: docker-compose.yml.j2
|
||||||
|
dest: /etc/docker/compose/kennel/docker-compose.yml
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: 0700
|
||||||
|
|
||||||
|
- name: Enable kennel
|
||||||
|
ansible.builtin.systemd_service:
|
||||||
|
state: restarted
|
||||||
|
enabled: true
|
||||||
|
name: docker-compose@kennel
|
|
@ -0,0 +1,12 @@
|
||||||
|
version: '3'
|
||||||
|
|
||||||
|
services:
|
||||||
|
server:
|
||||||
|
image: git.hatecomputers.club/hatecomputers/kennel:latest
|
||||||
|
restart: always
|
||||||
|
ports:
|
||||||
|
- 127.0.0.1:60613:8000
|
||||||
|
environment:
|
||||||
|
- TEST_ENV=value
|
||||||
|
volumes:
|
||||||
|
- ./data:/app/data
|
|
@ -0,0 +1,8 @@
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name kennel.hatecomputers.club;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
rewrite ^ https://kennel.hatecomputers.club$request_uri? permanent;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,24 @@
|
||||||
|
server {
|
||||||
|
server_name kennel.hatecomputers.club;
|
||||||
|
listen 443 ssl;
|
||||||
|
|
||||||
|
ssl_dhparam /etc/nginx/dhparams.pem;
|
||||||
|
|
||||||
|
ssl_session_timeout 1d;
|
||||||
|
ssl_session_tickets off;
|
||||||
|
ssl_protocols TLSv1.2 TLSv1.3;
|
||||||
|
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-CHACHA20-POLY1305;
|
||||||
|
ssl_prefer_server_ciphers off;
|
||||||
|
|
||||||
|
ssl_certificate /etc/letsencrypt/live/kennel.hatecomputers.club/fullchain.pem;
|
||||||
|
ssl_certificate_key /etc/letsencrypt/live/kennel.hatecomputers.club/privkey.pem;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
proxy_pass http://127.0.0.1:60613;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Host $host;
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue