| 1 | [mediagoblin] |
| 2 | # HTML title of the pages |
| 3 | html_title = string(default="GNU MediaGoblin") |
| 4 | |
| 5 | # link to source for this MediaGoblin site |
| 6 | source_link = string(default="https://gitorious.org/mediagoblin/mediagoblin") |
| 7 | |
| 8 | # database stuff |
| 9 | sql_engine = string(default="sqlite:///%(here)s/mediagoblin.db") |
| 10 | |
| 11 | # This flag is used during testing to allow use of in-memory SQLite |
| 12 | # databases. It is not recommended to be used on a running instance. |
| 13 | run_migrations = boolean(default=False) |
| 14 | |
| 15 | # Where temporary files used in processing and etc are kept |
| 16 | workbench_path = string(default="%(here)s/user_dev/media/workbench") |
| 17 | |
| 18 | # Where to store cryptographic sensible data |
| 19 | crypto_path = string(default="%(here)s/user_dev/crypto") |
| 20 | |
| 21 | # Where mediagoblin-builtin static assets are kept |
| 22 | direct_remote_path = string(default="/mgoblin_static/") |
| 23 | |
| 24 | # set to false to enable sending notices |
| 25 | email_debug_mode = boolean(default=True) |
| 26 | email_smtp_use_ssl = boolean(default=False) |
| 27 | email_sender_address = string(default="notice@mediagoblin.example.org") |
| 28 | email_smtp_host = string(default='') |
| 29 | email_smtp_port = integer(default=0) |
| 30 | email_smtp_user = string(default=None) |
| 31 | email_smtp_pass = string(default=None) |
| 32 | |
| 33 | # Set to false to disable registrations |
| 34 | allow_registration = boolean(default=True) |
| 35 | |
| 36 | # tag parsing |
| 37 | tags_max_length = integer(default=255) |
| 38 | |
| 39 | # Enable/disable comments |
| 40 | allow_comments = boolean(default=True) |
| 41 | |
| 42 | # Whether comments are ascending or descending |
| 43 | comments_ascending = boolean(default=True) |
| 44 | |
| 45 | # By default not set, but you might want something like: |
| 46 | # "%(here)s/user_dev/templates/" |
| 47 | local_templates = string() |
| 48 | |
| 49 | # Whether or not celery is set up via an environment variable or |
| 50 | # something else (and thus mediagoblin should not attempt to set it up |
| 51 | # itself) |
| 52 | celery_setup_elsewhere = boolean(default=False) |
| 53 | |
| 54 | # Whether or not users are able to upload files of any filetype with |
| 55 | # their media entries -- This is useful if you want to provide the |
| 56 | # source files for a media file but can also be a HUGE security risk. |
| 57 | allow_attachments = boolean(default=False) |
| 58 | |
| 59 | # Cookie stuff |
| 60 | csrf_cookie_name = string(default='mediagoblin_csrftoken') |
| 61 | |
| 62 | # Push stuff |
| 63 | push_urls = string_list(default=list()) |
| 64 | |
| 65 | exif_visible = boolean(default=False) |
| 66 | original_date_visible = boolean(default=False) |
| 67 | |
| 68 | # Theming stuff |
| 69 | theme_install_dir = string(default="%(here)s/user_dev/themes/") |
| 70 | theme_web_path = string(default="/theme_static/") |
| 71 | theme_linked_assets_dir = string(default="%(here)s/user_dev/theme_static/") |
| 72 | theme = string() |
| 73 | |
| 74 | # plugin default assets directory |
| 75 | plugin_web_path = string(default="/plugin_static/") |
| 76 | plugin_linked_assets_dir = string(default="%(here)s/user_dev/plugin_static/") |
| 77 | |
| 78 | # Default user upload limit (in Mb) |
| 79 | upload_limit = integer(default=None) |
| 80 | |
| 81 | # Max file size (in Mb) |
| 82 | max_file_size = integer(default=None) |
| 83 | |
| 84 | [jinja2] |
| 85 | # Jinja2 supports more directives than the minimum required by mediagoblin. |
| 86 | # This setting allows users creating custom templates to specify a list of |
| 87 | # additional extensions they want to use. example value: |
| 88 | # extensions = jinja2.ext.loopcontrols , jinja2.ext.with_ |
| 89 | extensions = string_list(default=list()) |
| 90 | |
| 91 | [storage:publicstore] |
| 92 | storage_class = string(default="mediagoblin.storage.filestorage:BasicFileStorage") |
| 93 | base_dir = string(default="%(here)s/user_dev/media/public") |
| 94 | base_url = string(default="/mgoblin_media/") |
| 95 | |
| 96 | [storage:queuestore] |
| 97 | storage_class = string(default="mediagoblin.storage.filestorage:BasicFileStorage") |
| 98 | base_dir = string(default="%(here)s/user_dev/media/queue") |
| 99 | |
| 100 | [media:medium] |
| 101 | # Dimensions used when creating media display images. |
| 102 | max_width = integer(default=640) |
| 103 | max_height = integer(default=640) |
| 104 | |
| 105 | [media:thumb] |
| 106 | # Dimensions used when creating media thumbnails |
| 107 | # This is unfortunately not implemented in the media |
| 108 | # types yet. You can help! |
| 109 | # TODO: Make plugins follow the media size settings |
| 110 | max_width = integer(default=180) |
| 111 | max_height = integer(default=180) |
| 112 | |
| 113 | [celery] |
| 114 | # default result stuff |
| 115 | CELERY_RESULT_BACKEND = string(default="database") |
| 116 | CELERY_RESULT_DBURI = string(default="sqlite:///%(here)s/celery.db") |
| 117 | |
| 118 | # default kombu stuff |
| 119 | BROKER_TRANSPORT = string(default="sqlalchemy") |
| 120 | BROKER_URL = string(default="sqlite:///%(here)s/kombu.db") |
| 121 | |
| 122 | # known booleans |
| 123 | CELERY_RESULT_PERSISTENT = boolean() |
| 124 | CELERY_CREATE_MISSING_QUEUES = boolean() |
| 125 | BROKER_USE_SSL = boolean() |
| 126 | BROKER_CONNECTION_RETRY = boolean() |
| 127 | CELERY_ALWAYS_EAGER = boolean() |
| 128 | CELERY_EAGER_PROPAGATES_EXCEPTIONS = boolean() |
| 129 | CELERY_IGNORE_RESULT = boolean() |
| 130 | CELERY_TRACK_STARTED = boolean() |
| 131 | CELERY_DISABLE_RATE_LIMITS = boolean() |
| 132 | CELERY_ACKS_LATE = boolean() |
| 133 | CELERY_STORE_ERRORS_EVEN_IF_IGNORED = boolean() |
| 134 | CELERY_SEND_TASK_ERROR_EMAILS = boolean() |
| 135 | CELERY_SEND_EVENTS = boolean() |
| 136 | CELERY_SEND_TASK_SENT_EVENT = boolean() |
| 137 | CELERYD_LOG_COLOR = boolean() |
| 138 | CELERY_REDIRECT_STDOUTS = boolean() |
| 139 | |
| 140 | # known ints |
| 141 | CELERYD_CONCURRENCY = integer() |
| 142 | CELERYD_PREFETCH_MULTIPLIER = integer() |
| 143 | CELERY_AMQP_TASK_RESULT_EXPIRES = integer() |
| 144 | CELERY_AMQP_TASK_RESULT_CONNECTION_MAX = integer() |
| 145 | REDIS_PORT = integer() |
| 146 | REDIS_DB = integer() |
| 147 | BROKER_PORT = integer() |
| 148 | BROKER_CONNECTION_TIMEOUT = integer() |
| 149 | CELERY_BROKER_CONNECTION_MAX_RETRIES = integer() |
| 150 | CELERY_TASK_RESULT_EXPIRES = integer() |
| 151 | CELERY_MAX_CACHED_RESULTS = integer() |
| 152 | CELERY_DEFAULT_RATE_LIMIT = integer() |
| 153 | CELERYD_MAX_TASKS_PER_CHILD = integer() |
| 154 | CELERYD_TASK_TIME_LIMIT = integer() |
| 155 | CELERYD_TASK_SOFT_TIME_LIMIT = integer() |
| 156 | MAIL_PORT = integer() |
| 157 | CELERYBEAT_MAX_LOOP_INTERVAL = integer() |
| 158 | |
| 159 | # known floats |
| 160 | CELERYD_ETA_SCHEDULER_PRECISION = float() |
| 161 | |
| 162 | # known lists |
| 163 | CELERY_ROUTES = string_list() |
| 164 | CELERY_IMPORTS = string_list() |