2020-01-30 15:10:01 +01:00
|
|
|
# Copy this file to .env
|
|
|
|
|
2021-01-17 13:15:41 +01:00
|
|
|
PHOTOVIEW_DATABASE_DRIVER=mysql
|
2021-01-17 12:45:23 +01:00
|
|
|
PHOTOVIEW_MYSQL_URL=user:password@tcp(localhost)/dbname
|
2020-01-30 15:10:01 +01:00
|
|
|
|
2021-01-31 17:06:25 +01:00
|
|
|
# Specifies the connection string for the postgres database, if PHOTOVIEW_DATABASE_DRIVER is set to 'postgres'
|
|
|
|
# See https://www.postgresql.org/docs/current/libpq-ssl.html for possible ssl modes
|
|
|
|
# PHOTOVIEW_POSTGRES_URL=postgres://user:password@host:port/dbname?sslmode=(disable|allow|...)
|
|
|
|
|
2021-01-17 13:15:41 +01:00
|
|
|
# Specifies the filepath for the sqlite database, if PHOTOVIEW_DATABASE_DRIVER is set to 'sqlite'
|
|
|
|
# PHOTOVIEW_SQLITE_PATH=photoview.db
|
|
|
|
|
2021-01-16 22:27:23 +01:00
|
|
|
PHOTOVIEW_LISTEN_IP=localhost
|
|
|
|
PHOTOVIEW_LISTEN_PORT=4001
|
2020-04-06 22:16:25 +02:00
|
|
|
|
|
|
|
# The url from which the server can be accessed publicly
|
2021-01-16 22:27:23 +01:00
|
|
|
PHOTOVIEW_API_ENDPOINT=http://localhost:4001/
|
|
|
|
PHOTOVIEW_UI_ENDPOINT=http://localhost:1234/
|
2020-02-19 22:28:21 +01:00
|
|
|
|
2021-01-17 16:50:48 +01:00
|
|
|
# Path where media should be cached, defaults to ./media_cache
|
|
|
|
# PHOTOVIEW_MEDIA_CACHE=./media_cache
|
|
|
|
|
2020-04-06 22:16:25 +02:00
|
|
|
# Set to 1 for the server to also serve the built static ui files
|
2021-01-16 22:27:23 +01:00
|
|
|
PHOTOVIEW_SERVE_UI=0
|
2020-02-21 17:53:04 +01:00
|
|
|
|
2020-09-27 00:46:01 +02:00
|
|
|
# Enter a valid mapbox token, to enable maps feature
|
|
|
|
# A token can be created for free at https://mapbox.com
|
|
|
|
#MAPBOX_TOKEN=<insert mapbox token here>
|
|
|
|
|
2020-02-19 22:28:21 +01:00
|
|
|
# Set to 1 to set server in development mode, this enables graphql playground
|
|
|
|
# Remove this if running in production
|
2021-01-16 22:27:23 +01:00
|
|
|
PHOTOVIEW_DEVELOPMENT_MODE=1
|