From Tom, 2 Weeks ago, written in Plain Text.
This paste will check out in 1 Week.
Embed
  1. # only set this to true when testing/debugging
  2. # when unset: 1 (true) - dont unset this, just for development
  3. DEBUG=0
  4. SQL_DEBUG=0
  5.  
  6. # hosts the application can run under e.g. recipes.mydomain.com,cooking.mydomain.com,...
  7. ALLOWED_HOSTS=*
  8.  
  9. # random secret key, use for example `base64 /dev/urandom | head -c50` to generate one
  10. SECRET_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
  11.  
  12. # your default timezone See https://timezonedb.com/time-zones for a list of timezones
  13. TIMEZONE=Europe/Berlin
  14.  
  15. # add only a database password if you want to run with the default postgres, otherwise change settings accordingly
  16. DB_ENGINE=django.db.backends.postgresql
  17. # DB_OPTIONS= {} # e.g. {"sslmode":"require"} to enable ssl
  18. POSTGRES_HOST=db_recipes
  19. POSTGRES_PORT=5432
  20. POSTGRES_USER=djangouser
  21. POSTGRES_PASSWORD=xxxxxx
  22. POSTGRES_DB=djangodb
  23.  
  24. # database connection string, when used overrides other database settings.
  25. # format might vary depending on backend
  26. #DATABASE_URL = engine://djangouser:djangopass@db_recipes:5432/djangodb
  27.  
  28. # the default value for the user preference 'fractions' (enable/disable fraction support)
  29. # default: disabled=0
  30. FRACTION_PREF_DEFAULT=0
  31.  
  32. # the default value for the user preference 'comments' (enable/disable commenting system)
  33. # default comments enabled=1
  34. COMMENT_PREF_DEFAULT=1
  35.  
  36. # Users can set a amount of time after which the shopping list is refreshed when they are in viewing mode
  37. # This is the minimum interval users can set. Setting this to low will allow users to refresh very frequently which
  38. # might cause high load on the server. (Technically they can obviously refresh as often as they want with their own scripts)
  39. SHOPPING_MIN_AUTOSYNC_INTERVAL=5
  40.  
  41. # Default for user setting sticky navbar
  42. # STICKY_NAV_PREF_DEFAULT=1
  43.  
  44. # If base URL is something other than just /  (you are serving a subfolder in your proxy for instance http://recipe_app/recipes/)
  45. # SCRIPT_NAME=/recipes
  46.  
  47. # If staticfiles are stored at a different location uncomment and change accordingly, MUST END IN /
  48. # this is not required if you are just using a subfolder
  49. # This can either be a relative path from the applications base path or the url of an external host
  50. # STATIC_URL=/static/
  51.  
  52. # If mediafiles are stored at a different location uncomment and change accordingly, MUST END IN /
  53. # this is not required if you are just using a subfolder
  54. # This can either be a relative path from the applications base path or the url of an external host
  55. # MEDIA_URL=/media/
  56.  
  57. # Serve mediafiles directly using gunicorn. Basically everyone recommends not doing this. Please use any of the examples
  58. # provided that include an additional nxginx container to handle media file serving.
  59. # If you know what you are doing turn this back on (1) to serve media files using djangos serve() method.
  60. # when unset: 1 (true) - this is temporary until an appropriate amount of time has passed for everyone to migrate
  61. GUNICORN_MEDIA=0
  62.  
  63. # S3 Media settings: store mediafiles in s3 or any compatible storage backend (e.g. minio)
  64. # as long as S3_ACCESS_KEY is not set S3 features are disabled
  65. # S3_ACCESS_KEY=
  66. # S3_SECRET_ACCESS_KEY=
  67. # S3_BUCKET_NAME=
  68. # S3_REGION_NAME= # default none, set your region might be required
  69. # S3_QUERYSTRING_AUTH=1 # default true, set to 0 to serve media from a public bucket without signed urls
  70. # S3_QUERYSTRING_EXPIRE=3600 # number of seconds querystring are valid for
  71. # S3_ENDPOINT_URL= # when using a custom endpoint like minio
  72.  
  73. # Email Settings, see https://docs.djangoproject.com/en/3.2/ref/settings/#email-host
  74. # Required for email confirmation and password reset (automatically activates if host is set)
  75. # EMAIL_HOST=
  76. # EMAIL_PORT=
  77. # EMAIL_HOST_USER=
  78. # EMAIL_HOST_PASSWORD=
  79. # EMAIL_USE_TLS=0
  80. # EMAIL_USE_SSL=0
  81. # DEFAULT_FROM_EMAIL= # email sender address (default 'webmaster@localhost')
  82. # ACCOUNT_EMAIL_SUBJECT_PREFIX= # prefix used for account related emails (default "[Tandoor Recipes] ")
  83.  
  84. # allow authentication via reverse proxy (e.g. authelia), leave off if you dont know what you are doing
  85. # see docs for more information https://vabene1111.github.io/recipes/features/authentication/
  86. # when unset: 0 (false)
  87. REVERSE_PROXY_AUTH=0
  88.  
  89. # Default settings for spaces, apply per space and can be changed in the admin view
  90. # SPACE_DEFAULT_MAX_RECIPES=0 # 0=unlimited recipes
  91. # SPACE_DEFAULT_MAX_USERS=0 # 0=unlimited users per space
  92. # SPACE_DEFAULT_MAX_FILES=0 # Maximum file storage for space in MB. 0 for unlimited, -1 to disable file upload.
  93. # SPACE_DEFAULT_ALLOW_SHARING=1 # Allow users to share recipes with public links
  94.  
  95. # allow people to create accounts on your application instance (without an invite link)
  96. # when unset: 0 (false)
  97. # ENABLE_SIGNUP=0
  98.  
  99. # If signup is enabled you might want to add a captcha to it to prevent spam
  100. # HCAPTCHA_SITEKEY=
  101. # HCAPTCHA_SECRET=
  102.  
  103. # if signup is enabled you might want to provide urls to data protection policies or terms and conditions
  104. # TERMS_URL=
  105. # PRIVACY_URL=
  106. # IMPRINT_URL=
  107.  
  108. # enable serving of prometheus metrics under the /metrics path
  109. # ATTENTION: view is not secured (as per the prometheus default way) so make sure to secure it
  110. # trough your web server (or leave it open of you dont care if the stats are exposed)
  111. # ENABLE_METRICS=0
  112.  
  113. # allows you to setup OAuth providers
  114. # see docs for more information https://vabene1111.github.io/recipes/features/authentication/
  115. # SOCIAL_PROVIDERS = allauth.socialaccount.providers.github, allauth.socialaccount.providers.nextcloud,
  116.  
  117. # Should a newly created user from a social provider get assigned to the default space and given permission by default ?
  118. # ATTENTION: This feature might be deprecated in favor of a space join and public viewing system in the future
  119. # default 0 (false), when 1 (true) users will be assigned space and group
  120. # SOCIAL_DEFAULT_ACCESS = 1
  121.  
  122. # if SOCIAL_DEFAULT_ACCESS is used, which group should be added
  123. # SOCIAL_DEFAULT_GROUP=guest
  124.  
  125. # Django session cookie settings. Can be changed to allow a single django application to authenticate several applications
  126. # when running under the same database
  127. # SESSION_COOKIE_DOMAIN=.example.com
  128. # SESSION_COOKIE_NAME=sessionid # use this only to not interfere with non unified django applications under the same top level domain
  129.  
  130. # by default SORT_TREE_BY_NAME is disabled this will store all Keywords and Food in the order they are created
  131. # enabling this setting makes saving new keywords and foods very slow, which doesn't matter in most usecases.
  132. # however, when doing large imports of recipes that will create new objects, can increase total run time by 10-15x
  133. # Keywords and Food can be manually sorted by name in Admin
  134. # This value can also be temporarily changed in Admin, it will revert the next time the application is started
  135. # This will be fixed/changed in the future by changing the implementation or finding a better workaround for sorting
  136. # SORT_TREE_BY_NAME=0
  137. # LDAP authentication
  138. # default 0 (false), when 1 (true) list of allowed users will be fetched from LDAP server
  139. #LDAP_AUTH=
  140. #AUTH_LDAP_SERVER_URI=
  141. #AUTH_LDAP_BIND_DN=
  142. #AUTH_LDAP_BIND_PASSWORD=
  143. #AUTH_LDAP_USER_SEARCH_BASE_DN=
  144. #
  145.  
  146.