mirror of
https://codeberg.org/polyteknisk-radiogruppe/the_prg_server_configuration.git
synced 2026-06-14 02:38:58 +02:00
Add Pelican stuff - not complete.
Add more Fabric Mods.
This commit is contained in:
parent
6d55338dd7
commit
3dd7f7bfe8
5 changed files with 92 additions and 4 deletions
24
nix-system-configs/modules/songsheet/wavelog/Caddyfile
Normal file
24
nix-system-configs/modules/songsheet/wavelog/Caddyfile
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
admin off
|
||||
servers {
|
||||
# Trust the upstream reverse proxy (Traefik) so the Panel recognizes
|
||||
# TLS is terminated there. Replace 10.1.1.250 with your Traefik IP
|
||||
# or the Cloudflare IP ranges if you're using Cloudflare Flexible SSL.
|
||||
trusted_proxies static 10.1.1.250
|
||||
}
|
||||
}
|
||||
|
||||
:80 {
|
||||
root * /var/www/html/public
|
||||
encode gzip
|
||||
|
||||
# FastCGI to the bundled php-fpm in the Panel image
|
||||
php_fastcgi 127.0.0.1:9000 {
|
||||
# Optional: raise upload limits if you need larger file uploads
|
||||
env PHP_VALUE "upload_max_filesize = 256M
|
||||
post_max_size = 256M"
|
||||
}
|
||||
|
||||
file_server
|
||||
}
|
||||
|
||||
|
|
@ -86,10 +86,12 @@
|
|||
image = "ghcr.io/pelican-dev/panel:latest";
|
||||
environment = {
|
||||
"ADMIN_EMAIL" = "kuutruu@posteo.net";
|
||||
"APP_URL" = "https://pelican.prg-radio.org";
|
||||
"APP_URL" = "http://localhost";
|
||||
"TRUSTED_PROXIES" = "10.1.1.250";
|
||||
"XDG_DATA_HOME" = "/pelican-data";
|
||||
};
|
||||
volumes = [
|
||||
"nix-system-configs/modules/songsheet/wavelog/Caddyfile:/etc/caddy/Caddyfile:rw"
|
||||
"wavelog_pelican-data:/pelican-data:rw"
|
||||
"wavelog_pelican-logs:/var/www/html/storage/logs:rw"
|
||||
];
|
||||
|
|
|
|||
|
|
@ -100,12 +100,15 @@ services:
|
|||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
volumes:
|
||||
# Mount the Caddyfile from the stable host path that pull.zsh deploys to
|
||||
- /etc/pelican/Caddyfile:/etc/caddy/Caddyfile:ro
|
||||
- pelican-data:/pelican-data
|
||||
- pelican-logs:/var/www/html/storage/logs
|
||||
environment:
|
||||
XDG_DATA_HOME: /pelican-data
|
||||
APP_URL: "https://pelican.prg-radio.org"
|
||||
ADMIN_EMAIL: "kuutruu@posteo.net"
|
||||
TRUSTED_PROXIES: "10.1.1.250"
|
||||
|
||||
wings:
|
||||
image: ghcr.io/pelican-dev/wings:latest
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue