diff options
author | bnewbold <bnewbold@robocracy.org> | 2016-04-10 03:16:36 -0400 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2016-04-10 03:16:36 -0400 |
commit | 8b0c0361d8807d9ae1ef29747480b07232f94411 (patch) | |
tree | dbe7b8029e2f3e1ed0e1d71fb56793fa091471ab /roles/mediagoblin/templates | |
parent | 43e55852f43cb733eac46965561b0995592ea3e7 (diff) | |
download | infra-8b0c0361d8807d9ae1ef29747480b07232f94411.tar.gz infra-8b0c0361d8807d9ae1ef29747480b07232f94411.zip |
mediagoblin: lots of little fixes; bugs prevent final deployment
Diffstat (limited to 'roles/mediagoblin/templates')
-rw-r--r-- | roles/mediagoblin/templates/mediagoblin_local.ini.j2 | 61 | ||||
-rw-r--r-- | roles/mediagoblin/templates/paste_local.ini.j2 | 86 |
2 files changed, 147 insertions, 0 deletions
diff --git a/roles/mediagoblin/templates/mediagoblin_local.ini.j2 b/roles/mediagoblin/templates/mediagoblin_local.ini.j2 new file mode 100644 index 0000000..0b047f7 --- /dev/null +++ b/roles/mediagoblin/templates/mediagoblin_local.ini.j2 @@ -0,0 +1,61 @@ +# If you want to make changes to this file, first copy it to +# mediagoblin_local.ini, then make the changes there. +# +# If you don't see what you need here, have a look at mediagoblin/config_spec.ini +# It defines types and defaults so it's a good place to look for documentation +# or to find hidden options that we didn't tell you about. :) + +# To change the directory you should make sure you change the +# directory in paste.ini and/or your webserver configuration. +# +# [DEFAULT] +# data_basedir = "/var/lib/mediagoblin" + +[mediagoblin] +direct_remote_path = /mgoblin_static/ +email_sender_address = "{{ mediagoblin_email_sender }}" + +## Uncomment and change to your DB's appropiate setting. +## Default is a local sqlite db "mediagoblin.db". +## Don't forget to run `./bin/gmg dbupdate` after having changed it. +# sql_engine = postgresql:///mediagoblin + +# Set to false to enable sending notices +email_debug_mode = true + +# Set to false to disable registrations +allow_registration = false + +# Set to false to disable the ability for users to report offensive content +allow_reporting = true + +## Uncomment this to put some user-overriding templates here +# local_templates = %(data_basedir)s/templates/ + +## You can set your theme by specifying this (not specifying it will +## use the default theme). Run `gmg assetlink` to apply the change. +## The airy and sandyseventiesspeedboat theme comes with GMG; please +## see the theming docs on how to install other themes. +# theme = airy + +## If you want the terms of service displayed, you can uncomment this +# show_tos = true + +user_privilege_scheme = "uploader,commenter,reporter" +[storage:queuestore] +base_dir = %(data_basedir)s/media/queue + +[storage:publicstore] +base_dir = %(data_basedir)s/media/public +base_url = /mgoblin_media/ + +[celery] +# Put celery stuff here + +# Place plugins here, each in their own subsection of [plugins]. +# See http://docs.mediagoblin.org/siteadmin/plugins.html for details. +[plugins] +[[mediagoblin.plugins.geolocation]] +[[mediagoblin.plugins.basic_auth]] +[[mediagoblin.plugins.processing_info]] +[[mediagoblin.media_types.image]] diff --git a/roles/mediagoblin/templates/paste_local.ini.j2 b/roles/mediagoblin/templates/paste_local.ini.j2 new file mode 100644 index 0000000..08af880 --- /dev/null +++ b/roles/mediagoblin/templates/paste_local.ini.j2 @@ -0,0 +1,86 @@ +# If you want to make changes to this file, first copy it to +# paste_local.ini, then make the changes there. + +[DEFAULT] +# Set to true to enable web-based debugging messages and etc. +debug = false + +[pipeline:main] +# pipeline = errors mediagoblin +pipeline = mediagoblin + +[app:mediagoblin] +use = egg:mediagoblin#app +config = %(here)s/mediagoblin_local.ini %(here)s/mediagoblin.ini +# static paths +/mgoblin_media = {{ mediagoblin_basedir }}/data/media/public +/mgoblin_static = %(here)s/mediagoblin/static +/theme_static = %(here)s/user_dev/theme_static +/plugin_static = %(here)s/user_dev/plugin_static + +[loggers] +keys = root + +[handlers] +keys = console + +[formatters] +keys = generic + +[logger_root] +level = INFO +handlers = console + +[handler_console] +class = StreamHandler +args = (sys.stderr,) +level = NOTSET +formatter = generic + +[formatter_generic] +format = %(asctime)s %(levelname)-7.7s [%(name)s] %(message)s + +[filter:errors] +use = egg:mediagoblin#errors +debug = false + + +############################## +# Server configuration options +############################## + +# The server that is run by default. +# By default, should only be accessable locally +[server:main] +use = egg:waitress#main +host = 127.0.0.1 +port = 6543 +# # Gunicorn settings. See http://docs.gunicorn.org/en/19.0/settings.html +# # for more information about configuring Gunicorn +# proc_name = gmg +# reload = true +# accesslog = - + +####################### +# Helper server configs +# --------------------- +# If you are configuring the paste config manually, you can remove +# these. + +# Use this if you want to run on port 6543 and have MediaGoblin be +# viewable externally +[server:broadcast] +use = egg:waitress#main +host = 0.0.0.0 +port = 6543 + +# Use this if you want to connect via fastcgi +[server:fcgi] +use = egg:flup#fcgi_fork +host = %(fcgi_host)s +port = %(fcgi_port)s + +[server:http] +use = egg:waitress#main +host = %(http_host)s +port = %(http_port)s |