Skip to content

Commit

Permalink
Fix .env file default
Browse files Browse the repository at this point in the history
  • Loading branch information
Kovah committed Oct 17, 2024
1 parent 31273e5 commit d332a9d
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
20 changes: 20 additions & 0 deletions .env.sqlite.production
Original file line number Diff line number Diff line change
@@ -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 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ yarn-error.log
.env.*
!.env.docker
!.env.docker.production
!.env.sqlite.production
!.env.example
.phpunit.result.cache
_ide_helper.php
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d332a9d

Please sign in to comment.