mirror of
https://github.com/pinry/pinry.git
synced 2025-11-14 00:55:43 +01:00
Move the docker related content to a better folder
This commit is contained in:
44
docker/pinry/local_settings.example.py
Normal file
44
docker/pinry/local_settings.example.py
Normal file
@@ -0,0 +1,44 @@
|
||||
import os
|
||||
|
||||
|
||||
# Please don't change following settings unless you know what you are doing
|
||||
STATIC_ROOT = '/data/static'
|
||||
|
||||
MEDIA_ROOT = os.path.join(STATIC_ROOT, 'media')
|
||||
|
||||
# SECURITY WARNING: keep the secret key used in production secret!
|
||||
# Or just write your own secret-key here instead of using a env-variable
|
||||
SECRET_KEY = "secret_key_place_holder"
|
||||
|
||||
# SECURITY WARNING: don't run with debug turned on in production!
|
||||
DEBUG = False
|
||||
TEMPLATE_DEBUG = DEBUG
|
||||
|
||||
# SECURITY WARNING: use your actual domain name in production!
|
||||
ALLOWED_HOSTS = ['*']
|
||||
|
||||
# Database
|
||||
# https://docs.djangoproject.com/en/1.10/ref/settings/#databases
|
||||
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.sqlite3',
|
||||
'NAME': '/data/production.db',
|
||||
}
|
||||
}
|
||||
|
||||
# Allow users to register by themselves
|
||||
ALLOW_NEW_REGISTRATIONS = False
|
||||
|
||||
# Delete image files once you remove your pin
|
||||
IMAGE_AUTO_DELETE = True
|
||||
|
||||
# thumbnail size control
|
||||
IMAGE_SIZES = {
|
||||
'thumbnail': {'size': [240, 0]},
|
||||
'standard': {'size': [600, 0]},
|
||||
'square': {'crop': True, 'size': [125, 125]},
|
||||
}
|
||||
|
||||
# Whether people can view pins without login
|
||||
PUBLIC = True
|
||||
Reference in New Issue
Block a user