diff --git a/homelab/server/config/chibisafe/.env b/homelab/server/config/chibisafe/.env new file mode 100644 index 00000000..6c114acc --- /dev/null +++ b/homelab/server/config/chibisafe/.env @@ -0,0 +1,10 @@ +DOCKER_DATA=/home/joey/data/chibisafe + +CHIBISAFE_SECRET="!uD@uL6WgbD6Z7Z7^9j7UhW@8!Tjk9kg" +CHIBISAFE_ADMIN_USER="jafner" +CHIBISAFE_ADMIN_PASS="t96&$bVv8z@JKWUvV%smcUNTo2x$$oAc" + +DB_HOST="db" +DB_USER="user" +DB_PASS="K6sB!pdvB!DV2ic6w$^&YKGK9meBat@*" +DB_DB="db" \ No newline at end of file diff --git a/homelab/server/config/chibisafe/docker-compose.yml b/homelab/server/config/chibisafe/docker-compose.yml new file mode 100644 index 00000000..3dd5d37c --- /dev/null +++ b/homelab/server/config/chibisafe/docker-compose.yml @@ -0,0 +1,42 @@ +version: "3" +services: + chibisafe: + build: + context: ./chibisafe + dockerfile: ./chibisafe/docker/chibisafe/Dockerfile + expose: + - "5000" + - "5001" + restart: unless-stopped + environment: + OVERWRITE_SETTINGS: "false" + CHUNK_SIZE: 90 + ROUTE_PREFIX: /api + RATE_LIMIT_WINDOW: 2 + RATE_LIMIT_MAX: 5 + BLOCKED_EXTENSIONS: ".jar,.exe,.msi,.com,.bat,.cmd,.scr,.ps1,.sh" + SECRET: $CHIBISAFE_SECRET + MAX_LINKS_PER_ALBUM: 5 + META_THEME_COLOR: "#20222b" + META_DESCRIPTION: "Jafner.net's file sharing server" + META_KEYWORDS: "" + META_TWITTER_HANDLE: "" + SERVER_PORT: 5000 + DOMAIN: "http://localhost:5000" + SERVICE_NAME: chibisafe + MAX_SIZE: 5000 + GENERATE_THUMBNAILS: "true" + GENERATE_ZIPS: "true" + STRIP_EXIF: "true" + SERVE_WITH_NODE: "true" + GENERATED_FILENAME_LENGTH: 16 + GENERATED_ALBUM_LENGTH: 8 + PUBLIC_MODE: "false" + USER_ACCOUNTS: "true" + ADMIN_ACCOUNT: $CHIBISAFE_ADMIN_USER + ADMIN_PASSWORD: $CHIBISAFE_ADMIN_PASS + DB_CLIENT: "sqlite3" + DB_HOST: $DB_HOST + DB_USER: $DB_USER + DB_PASSWORD: $DB_PASS + DB_DATABASE: $DB_DB \ No newline at end of file