optimized configuration

This commit is contained in:
Kevin Veen-Birkenbach 2022-11-16 12:27:49 +01:00
parent 0de977245c
commit 55ee33e117
2 changed files with 17 additions and 31 deletions

View File

@ -41,11 +41,8 @@ services:
driver: journald driver: journald
image: mariadb image: mariadb
restart: always restart: always
environment: env_file:
MYSQL_DATABASE: "pixelfed" - ./env
MYSQL_USER: "pixelfed"
MYSQL_PASSWORD: "{{pixelfed_database_password}}"
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
volumes: volumes:
- database:/var/lib/mysql - database:/var/lib/mysql
healthcheck: healthcheck:

View File

@ -5,12 +5,12 @@ APP_KEY=
APP_NAME="Pixelfed Prod" APP_NAME="Pixelfed Prod"
APP_ENV=production APP_ENV=production
APP_DEBUG=false APP_DEBUG=false
APP_URL=https://real.domain APP_URL=https://{{domain}}
APP_DOMAIN="real.domain" APP_DOMAIN="{{domain}}"
ADMIN_DOMAIN="real.domain" ADMIN_DOMAIN="{{domain}}"
SESSION_DOMAIN="real.domain" SESSION_DOMAIN="{{domain}}"
OPEN_REGISTRATION=true OPEN_REGISTRATION=false
ENFORCE_EMAIL_VERIFICATION=false ENFORCE_EMAIL_VERIFICATION=false
PF_MAX_USERS=1000 PF_MAX_USERS=1000
OAUTH_ENABLED=true OAUTH_ENABLED=true
@ -46,13 +46,13 @@ RESTRICTED_INSTANCE=false
## Mail ## Mail
MAIL_DRIVER=log MAIL_DRIVER=log
MAIL_HOST=smtp.mailtrap.io MAIL_HOST={{system_email_host}}
MAIL_PORT=2525 MAIL_PORT=587
MAIL_FROM_ADDRESS="pixelfed@example.com" MAIL_FROM_ADDRESS="{{system_email_username}}"
MAIL_FROM_NAME="Pixelfed" MAIL_FROM_NAME="Pixelfed"
MAIL_USERNAME=null MAIL_USERNAME={{system_email_username}}
MAIL_PASSWORD=null MAIL_PASSWORD={{system_email_password}}
MAIL_ENCRYPTION=null MAIL_ENCRYPTION=tls
## Databases (MySQL) ## Databases (MySQL)
DB_CONNECTION=mysql DB_CONNECTION=mysql
@ -66,14 +66,10 @@ MYSQL_DATABASE=pixelfed_prod
MYSQL_PASSWORD=pixelfed_db_pass MYSQL_PASSWORD=pixelfed_db_pass
MYSQL_RANDOM_ROOT_PASSWORD=true MYSQL_RANDOM_ROOT_PASSWORD=true
MYSQL_USER=pixelfed MYSQL_USER=pixelfed
MYSQL_DATABASE="pixelfed"
## Databases (Postgres) MYSQL_USER="pixelfed"
#DB_CONNECTION=pgsql MYSQL_PASSWORD="{{pixelfed_database_password}}"
#DB_HOST=postgres MYSQL_ROOT_PASSWORD="{{pixelfed_database_password}}"
#DB_PORT=5432
#DB_DATABASE=pixelfed
#DB_USERNAME=postgres
#DB_PASSWORD=postgres
## Cache (Redis) ## Cache (Redis)
REDIS_CLIENT=phpredis REDIS_CLIENT=phpredis
@ -104,13 +100,6 @@ WEBFINGER=true
FILESYSTEM_DRIVER=local FILESYSTEM_DRIVER=local
FILESYSTEM_CLOUD=s3 FILESYSTEM_CLOUD=s3
PF_ENABLE_CLOUD=false PF_ENABLE_CLOUD=false
#AWS_ACCESS_KEY_ID=
#AWS_SECRET_ACCESS_KEY=
#AWS_DEFAULT_REGION=
#AWS_BUCKET=
#AWS_URL=
#AWS_ENDPOINT=
#AWS_USE_PATH_STYLE_ENDPOINT=false
## Horizon ## Horizon
HORIZON_DARKMODE=false HORIZON_DARKMODE=false