1
0
mirror of https://github.com/Kovah/LinkAce.git synced 2025-01-16 20:58:22 +01:00

Fix .env file default

This commit is contained in:
Kovah 2024-10-17 16:28:14 +02:00
parent 31273e58f8
commit d332a9db55
No known key found for this signature in database
GPG Key ID: AAAA031BA9830D7B
4 changed files with 26 additions and 5 deletions

View File

@ -7,13 +7,13 @@ APP_KEY=someRandomStringWith32Characters
## Configuration of the database connection
## Attention: Those settings are configured during the web setup, please do not modify them now.
# Set the database driver (mysql, pgsql, sqlsrv, sqlite)
DB_CONNECTION=sqlite
# Set the database name (MySQL, Postgres,...) or path (SQLite) here
DB_DATABASE=/app/database/database.sqlite
DB_CONNECTION=mysql
# Set the host of your database here
DB_HOST=127.0.0.1
DB_HOST=db
# Set the port of your database here
DB_PORT=3306
# Set the database name here
DB_DATABASE=linkace
# Set both username and password of the user accessing the database
DB_USERNAME=linkace
# Wrap your password into quotes (") if it contains special characters

20
.env.sqlite.production Normal file
View File

@ -0,0 +1,20 @@
## LINKACE CONFIGURATION
## Basic app configuration
# The app key is generated later, please leave it like that
APP_KEY=someRandomStringWith32Characters
## Configuration of the database connection
## Attention: Those settings are configured during the web setup, please do not modify them now.
# Set the database driver (mysql, pgsql, sqlsrv, sqlite)
DB_CONNECTION=sqlite
# Set the database name (MySQL, Postgres,...) or path (SQLite) here
DB_DATABASE=/app/database/database.sqlite
# Set the host of your database here
DB_HOST=127.0.0.1
# Set the port of your database here
DB_PORT=3306
# Set both username and password of the user accessing the database
DB_USERNAME=linkace
# Wrap your password into quotes (") if it contains special characters
DB_PASSWORD=ChangeThisToASecurePassword!

1
.gitignore vendored
View File

@ -20,6 +20,7 @@ yarn-error.log
.env.*
!.env.docker
!.env.docker.production
!.env.sqlite.production
!.env.example
.phpunit.result.cache
_ide_helper.php

View File

@ -84,7 +84,7 @@ RUN touch ./database/database.sqlite \
&& chmod +w ./database/database.sqlite \
&& chmod +r ./database
COPY --chown=www-data:www-data ./.env.example /app/.env
COPY --chown=www-data:www-data ./.env.sqlite.production /app/.env
# Configure Supervisor for PHP + Caddy
ENV PORT=80