mirror of
https://github.com/sissbruecker/linkding.git
synced 2025-08-08 03:08:29 +02:00
Create docker image
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
"""
|
||||
Django settings for siteroot project.
|
||||
Django settings for linkding webapp.
|
||||
|
||||
Generated by 'django-admin startproject' using Django 2.2.2.
|
||||
|
||||
@@ -120,8 +120,12 @@ USE_TZ = True
|
||||
|
||||
STATIC_URL = '/static/'
|
||||
|
||||
# Collect static files in static folder
|
||||
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
|
||||
|
||||
# Location where generated CSS files are saved
|
||||
SASS_PROCESSOR_ROOT = os.path.join(BASE_DIR, 'bookmarks', 'static', 'build')
|
||||
SASS_PROCESSOR_ENABLED = True
|
||||
SASS_PROCESSOR_ROOT = os.path.join(BASE_DIR, 'tmp', 'build', 'styles')
|
||||
|
||||
# Add SASS preprocessor finder to resolve generated CSS
|
||||
STATICFILES_FINDERS = [
|
||||
|
1
siteroot/settings_custom.py
Normal file
1
siteroot/settings_custom.py
Normal file
@@ -0,0 +1 @@
|
||||
# Placeholder, can be overridden in Docker container with a custom settings like ALLOWED_HOSTS
|
18
siteroot/settings_prod.py
Normal file
18
siteroot/settings_prod.py
Normal file
@@ -0,0 +1,18 @@
|
||||
"""
|
||||
Production settings for linkding webapp
|
||||
"""
|
||||
|
||||
# Start from development settings
|
||||
# noinspection PyUnresolvedReferences
|
||||
from .settings import *
|
||||
|
||||
# Turn of debug mode
|
||||
DEBUG = False
|
||||
# Turn off SASS compilation
|
||||
SASS_PROCESSOR_ENABLED = False
|
||||
|
||||
ALLOWED_HOSTS = ['*']
|
||||
|
||||
# Import custom settings
|
||||
# noinspection PyUnresolvedReferences
|
||||
from .settings_custom import *
|
Reference in New Issue
Block a user