From c2dd971eb1bdaed24ca17d787e3fafbf0ff34718 Mon Sep 17 00:00:00 2001 From: ION606 Date: Mon, 25 Aug 2025 22:28:55 -0400 Subject: [PATCH] permissions fix --- docker-compose.yml | 4 +++- privatebin.conf.php | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 0cf3bda..cdae25c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -18,8 +18,10 @@ services: privatebin: image: privatebin/nginx-fpm-alpine:stable volumes: - - ./privatebin.conf.php:/srv/cfg/conf.php + - ./privatebin.conf.php:/srv/cfg/conf.php:ro,Z - privatebin-data:/srv/data + environment: + - SHORT_DOMAIN=${SHORT_DOMAIN} labels: - traefik.enable=true - traefik.http.routers.privatebin.rule=Host(`${PASTE_DOMAIN}`) diff --git a/privatebin.conf.php b/privatebin.conf.php index 25c1d3a..6b939e6 100644 --- a/privatebin.conf.php +++ b/privatebin.conf.php @@ -68,7 +68,9 @@ availabletemplates[] = "bootstrap-compact-page" ; in privatebin.conf.php ([main] section) ; important: only do this with your self-hosted shortener (see note below) -urlshortener = "https://{env.SHORT_DOMAIN}/shorten?link=" +; urlshortener = "https://${env.SHORT_DOMAIN}/shorten?link=" +urlshortener = "https://s.ion606.com/shorten?link=" + ; (optional) Whether to shorten the URL by default when a new document is created. ; If set to true, the "Shorten URL" functionality will be automatically called.