chore(zipline): refactor config

This commit is contained in:
Nicolas Meienberger 2023-03-01 20:20:38 +01:00
parent 11bd4105dc
commit 70d80650b8
3 changed files with 12 additions and 16 deletions

View File

@ -16,15 +16,15 @@
"form_fields": [ "form_fields": [
{ {
"type": "random", "type": "random",
"label": "DB_PASSWORD", "label": "ZIPLINE_DB_PASSWORD",
"min": 32, "min": 32,
"env_variable": "DB_PASSWORD" "env_variable": "ZIPLINE_DB_PASSWORD"
}, },
{ {
"type": "random", "type": "random",
"label": "CORE_SECRET", "label": "ZIPLINE_CORE_SECRET",
"min": 32, "min": 32,
"env_variable": "CORE_SECRET" "env_variable": "ZIPLINE_CORE_SECRET"
} }
] ]
} }

View File

@ -1,17 +1,18 @@
version: "3.7" version: '3.7'
services: services:
zipline: zipline:
container_name: zipline
image: ghcr.io/diced/zipline:3.6.4 image: ghcr.io/diced/zipline:3.6.4
ports: ports:
- '${APP_PORT}:3000' - '${APP_PORT}:3000'
restart: unless-stopped restart: unless-stopped
environment: environment:
- CORE_RETURN_HTTPS=false - CORE_RETURN_HTTPS=false
- CORE_SECRET=${CORE_SECRET} - CORE_SECRET=${ZIPLINE_CORE_SECRET}
- CORE_HOST=0.0.0.0 - CORE_HOST=0.0.0.0
- CORE_PORT=3000 - CORE_PORT=3000
- CORE_DATABASE_URL=postgres://tipi:${DB_PASSWORD}@zipline-db/zipline - CORE_DATABASE_URL=postgres://tipi:${ZIPLINE_DB_PASSWORD}@zipline-db/zipline
- CORE_LOGGER=true - CORE_LOGGER=true
volumes: volumes:
- '${APP_DATA_DIR}/data/uploads:/zipline/uploads' - '${APP_DATA_DIR}/data/uploads:/zipline/uploads'
@ -34,7 +35,7 @@ services:
restart: unless-stopped restart: unless-stopped
environment: environment:
- POSTGRES_USER=tipi - POSTGRES_USER=tipi
- POSTGRES_PASSWORD=${DB_PASSWORD} - POSTGRES_PASSWORD=${ZIPLINE_DB_PASSWORD}
- POSTGRES_DB=zipline - POSTGRES_DB=zipline
volumes: volumes:
- ${APP_DATA_DIR}/data/postgres:/var/lib/postgresql/data - ${APP_DATA_DIR}/data/postgres:/var/lib/postgresql/data

View File

@ -1,14 +1,9 @@
A ShareX/file upload server that is easy to use, packed with features, and with an easy setup! A ShareX/file upload server that is easy to use, packed with features, and with an easy setup!
![Stars](https://img.shields.io/github/stars/diced/zipline?logo=github&style=flat) ## Default credentials
![Version](https://img.shields.io/github/package-json/v/diced/zipline?logo=git&logoColor=white&style=flat)
![GitHub last commit (branch)](https://img.shields.io/github/last-commit/diced/zipline/trunk?logo=git&logoColor=white&style=flat)
[![Discord](https://img.shields.io/discord/729771078196527176?color=%23777ed3&label=discord&logo=discord&logoColor=white&style=flat)](https://discord.gg/EAhCRfGxCF)
![Build](https://img.shields.io/github/actions/workflow/status/diced/zipline/build.yml?logo=github&style=flat&branch=trunk)
[![Docker Image (trunk)](https://img.shields.io/github/actions/workflow/status/diced/zipline/docker.yml?label=Docker%20%28trunk%29&logo=github&style=flat&branch=trunk)](https://github.com/diced/zipline/pkgs/container/zipline/?tag=trunk)
[![Docker Image (release)](https://img.shields.io/github/actions/workflow/status/diced/zipline/docker-release.yml?label=Docker%20%28release%29&logo=github&style=flat&branch=trunk)](https://github.com/diced/zipline/pkgs/container/zipline/?tag=latest)
Username: administrator
Password: password
## Features ## Features