fix: takahe media

This commit is contained in:
Strix 2023-11-25 00:41:02 +01:00
parent 8bd867bc30
commit aa0cfb46c8
No known key found for this signature in database
GPG key ID: 5F35B3B8537287A7
3 changed files with 12 additions and 2 deletions

View file

@ -10,4 +10,13 @@ server {
proxy_pass http://takahe:8000; proxy_pass http://takahe:8000;
} }
}
server {
listen 80;
server_name takahemedia.ixvd.net;
location / {
root /usr/share/takahe;
}
} }

View file

@ -7,7 +7,7 @@ x-takahe-common: &takahe-common
TAKAHE_DATABASE_SERVER: "postgres://takahe:takahe@takahe-db/takahe" TAKAHE_DATABASE_SERVER: "postgres://takahe:takahe@takahe-db/takahe"
TAKAHE_MEDIA_BACKEND: "local://" TAKAHE_MEDIA_BACKEND: "local://"
TAKAHE_MEDIA_ROOT: "/media" TAKAHE_MEDIA_ROOT: "/media"
TAKAHE_MEDIA_URL: "/media/" TAKAHE_MEDIA_URL: "https://takahemedia.ixvd.net/"
TAKAHE_MAIN_DOMAIN: "takahe.ixvd.net" TAKAHE_MAIN_DOMAIN: "takahe.ixvd.net"
env_file: env_file:
- /etc/ixvd/secrets/env/takahe.env - /etc/ixvd/secrets/env/takahe.env

View file

@ -7,10 +7,11 @@ services:
build: custom/nginx build: custom/nginx
environment: environment:
CERTBOT_EMAIL: "webmaster@ixvd.net" CERTBOT_EMAIL: "webmaster@ixvd.net"
CERTBOT_DOMAINS: "kid.ixvd.net,fedi.ixvd.net,matrix.ixvd.net,matrix.neo.ixvd.net,cinny.ixvd.net,search.ixvd.net,pad.ixvd.net,sandbox.pad.ixvd.net,bin.ixvd.net,takahe.ixvd.net" CERTBOT_DOMAINS: "kid.ixvd.net,fedi.ixvd.net,matrix.ixvd.net,matrix.neo.ixvd.net,cinny.ixvd.net,search.ixvd.net,pad.ixvd.net,sandbox.pad.ixvd.net,bin.ixvd.net,takahe.ixvd.net,takahemedia.ixvd.net"
volumes: volumes:
- /srv/certbot/data:/etc/letsencrypt - /srv/certbot/data:/etc/letsencrypt
- /srv/certbot/other/www:/var/www/certbot - /srv/certbot/other/www:/var/www/certbot
- /srv/takahe/data:/usr/share/takahe
ports: ports:
- 80:80 - 80:80
- 443:443 - 443:443