Deploy Peertube

This commit is contained in:
Salt 2021-06-07 02:52:11 -05:00
parent 3be959ee6a
commit fecdbfd48c
2 changed files with 51 additions and 3 deletions

View File

@ -43,9 +43,16 @@
owner: nextcloud-desultd owner: nextcloud-desultd
- name: pleroma_cowfee - name: pleroma_cowfee
owner: pleroma-cowfee owner: pleroma-cowfee
- name: peertube_cowfee - name: peertube
owner: peertube-cowfee owner: peertube-cowfee
tags: [ db, psql ] tags: [ db, psql ]
tasks:
- name: enable db extensions for peertube
postgresql_ext: name={{ item }} db=peertube
with_items:
- pg_trgm
- unaccent
tags: [ db, psql, ext ]
- hosts: psql1.9iron.club - hosts: psql1.9iron.club
roles: roles:
- role: backup - role: backup

View File

@ -163,6 +163,19 @@
proxy_pass http://pleroma:4000; proxy_pass http://pleroma:4000;
} }
} }
server {
listen 443 ssl;
server_name tube.cowfee.moe;
ssl_certificate /etc/letsencrypt/live/cowfee.moe/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/cowfee.moe/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/cowfee.moe/chain.pem;
ssl_dhparam /etc/letsencrypt/dhparams/dhparam.pem;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://peertube:9000;
}
}
tags: [ docker, ingress ] tags: [ docker, ingress ]
- name: docker deploy pleroma - name: docker deploy pleroma
docker_container: docker_container:
@ -177,13 +190,41 @@
networks: networks:
- name: web - name: web
aliases: [ "pleroma" ] aliases: [ "pleroma" ]
ports:
- "4000:4000"
volumes: volumes:
- /data/pleroma/etc:/etc/pleroma - /data/pleroma/etc:/etc/pleroma
- /data/pleroma/static:/var/lib/pleroma/static - /data/pleroma/static:/var/lib/pleroma/static
- /data/pleroma/uploads:/var/lib/pleroma/uploads - /data/pleroma/uploads:/var/lib/pleroma/uploads
tags: [ docker, pleroma ] tags: [ docker, pleroma ]
- name: docker deploy redis
docker_container:
name: redis
image: redis:6-alpine
networks:
- name: web
aliases: [ "redis" ]
tags: [ docker, redis ]
- name: docker deploy peertube
docker_container:
name: peertube
image: chocobozzz/peertube:production-buster
env:
POSTGRES_DB: peertube_cowfee
PEERTUBE_DB: peertube_cowfee
PEERTUBE_DB_USERNAME: peertube-cowfee
PEERTUBE_DB_PASSWORD: "{{ secret_peertube_db_pass }}"
PEERTUBE_DB_HOSTNAME: 192.168.164.156
PEERTUBE_ADMIN_EMAIL: rehashedsalt@cock.li
PEERTUBE_WEBSERVER_HOSTNAME: tube.cowfee.moe
PEERTUBE_TRUST_PROXY: '["127.0.0.0/16", "192.168.0.0/16", "172.16.0.0/12", "10.0.0.0/8"]'
networks:
- name: web
aliases: [ "peertube" ]
ports:
- "1935:1935"
volumes:
- /data/peertube/data:/data
- /data/peertube/config:/config
tags: [ docker, peertube ]
- name: docker deploy nginx proxy - name: docker deploy nginx proxy
docker_container: docker_container:
name: ingress name: ingress