Commit Graph

53 Commits

Author SHA1 Message Date
Stephane Martin cb7430df4e moving auth_proxy to hooks.py 2016-09-06 13:53:40 +02:00
Stephane Martin 328f41b85c authentication by reverse proxy 2016-09-05 23:36:59 +02:00
Stephane Martin 1152c851e1 woosh -> whoosh 2016-09-05 01:30:37 +02:00
stef 6a043f4a7d more readable imports 2016-09-05 01:30:37 +02:00
stef 2731531768 systematic use of `from __future__ import absolute_import`. it eliminates `import NAME` confusion with very common names (eg. `import ldap` is very ambiguous: can be a ldap module from realms-wiki, a ldap module from flask-ldap-login, or `python-ldap` module.
also cleant up a bit the import towards PEP8: builtin modules first, then 3rd party python packages, then local packages
2016-09-05 01:29:29 +02:00
Chase Sterling f175f12970 Merge remote-tracking branch 'origin/master' into update_flask 2016-07-28 10:22:37 -04:00
Chase Sterling d6800f9c4e Update flask-sqlalchemy connection format link. fix #165 2016-07-25 21:50:49 -04:00
Chase Sterling 36d3fb7215 Fix some deprecation warnings with newer flask version 2016-07-14 17:59:08 -04:00
Chase Sterling 6e10d56479 Only add 'auth.local' to MODULES when AUTH_LOCAL_ENABLED is True 2016-07-07 19:42:23 -04:00
Sachi King 695dba98f9 Use properties in config for pass-through compat vars
Strings are immutable, so when one variable changes the other will not,
as such there is variance on config load between variables that should
be the the value of another variable.

To solve that I've moved the config into a class and made those values
read-only properties to the loaded values.

Closes: #137 #138
2016-06-05 22:03:49 +10:00
Lars Immisch cfe419e5b5 Fix presumed typo
I assume a trailing slash should be removed
2016-01-31 17:36:53 +01:00
Matthew Scragg a87ee06f65 Allow override of bound host address. Fixes #110. 2016-01-23 16:04:56 -06:00
Chase Sterling 20810138da Allow all config options to be specified in realms-wiki.json 2015-12-15 22:46:55 -05:00
Matthew Scragg 04b5e04593 Dynamically enable modules based on config values 2015-11-22 17:12:26 -06:00
Matthew Scragg 6edaec3876 get oauth data from providers 2015-11-12 17:19:26 -06:00
Matthew Scragg 0b1c55f6a5 fallback to default avatar if email is not set
auth submodules are registered with initialized
check if auth.local is loaded before accessing registration route
check DB_URI before attempt to create db
2015-11-06 17:44:48 -06:00
Matthew Scragg a0124baf1d oauth work 2015-10-15 17:36:47 -05:00
Matthew Scragg 2eaf09dc78 ldap first pass 2015-10-14 17:36:22 -05:00
Matthew Scragg 3c2f4a0445 first pass, non-working 2015-10-13 22:52:30 -05:00
Matthew Scragg f59e46c7df Disable sendfile when running dev from vagrant.
Upgrade gunicorn.
Add BS3 classes to rendered markdown tables. Fixes #72
2015-08-30 19:17:51 -05:00
Matthew Scragg a721de26b6 Merge pull request #66 from darkindex/elasticsearch-fields
Make Elasticsearch searched fields configurable
2015-07-24 12:30:17 -07:00
Simon Edwards 8e73a32875 Make Elasticsearch searched fields configurable
This allows fields stuch as "content" to be searchable when using Elasticsearch
Add config item ELASTICSEARCH_FIELDS, list of fields to search.
Defaults to just "name" to preserve existing behaviour
Available fields are:
- "name"
- "username"
- "content"
- "message"
2015-07-24 13:29:24 +01:00
cybrwushl93 c9308b25e3 added the ability to make wiki private (resolves #54) 2015-07-18 11:02:59 +02:00
Fabian Schlager 72ab066c10 Reverse config path lookup 2014-11-21 19:27:34 +01:00
Fabian Schlager d8e7ed7ad4 Restored default config 2014-11-21 16:49:36 +01:00
Fabian Schlager db1f5c84a7 Add fallback for non-supported languages & search in path and text 2014-11-21 16:47:50 +01:00
Fabian Schlager 06a5cd5aef Initial version of whoosh based search 2014-11-21 16:47:50 +01:00
Matthew Scragg 08a4c71c10 search pass three 2014-11-12 17:06:56 -06:00
scragg 312c61ef61 search module, wip 2014-11-10 10:54:46 -06:00
Matthew Scragg 2d6f368ff1 fix #32 2014-10-30 17:59:19 -05:00
Matthew Scragg 1b1e34b035 fix wiki locked pages var 2014-10-24 14:55:12 -05:00
Matthew Scragg eb43083e17 config bug fix 2014-10-24 14:48:29 -05:00
scragg 528c28fefe fix config read bug
changed install script just or vagrant
updated readme
2014-10-23 22:22:30 -05:00
Matthew Scragg d2171f9498 cli adjustments 2014-10-23 18:58:58 -05:00
Matthew Scragg 07852bdd98 cli and setuptools wip 2014-10-16 16:54:45 -05:00
Matthew Scragg eb12c84e9a Added RDBMS info
Canonical names to forced to lowercase
Made user model compatible to other DBs
CSS adjustments
Basic Firepad support (no presence info)
Cleaned up JS a bit
Added ability to remove draft from localstorage
Added support for drafts on multiple pages
Alert user if page changes, issue #1
2014-10-03 13:49:18 -05:00
Matthew Scragg d72ecf10f0 firepad + others WIP 2014-10-01 17:14:54 -05:00
Matthew Scragg 2895308667 implements #4, use env to configure app 2014-09-29 15:22:20 -05:00
Matthew Scragg 58f9109bd2 add dockerfile
move cli functions in module
add configure command
2014-09-18 16:44:01 -05:00
Matthew Scragg de3b2d66c3 update default config
transfer some assets to bower
use font awesome for icons
create setup.py
create setup command to generate config
2014-09-17 16:13:10 -05:00
Matthew Scragg b8531a0347 add config option to disable registration
add command to create user
2014-09-13 22:47:17 -05:00
Matthew Scragg 1b433f1762 add config option to lock pages explicitly 2014-09-10 13:58:47 -05:00
Matthew Scragg a4fed38d97 changed default wiki path 2014-09-09 16:01:07 -05:00
Matthew Scragg b4a74342e3 update install script, config, bower.json 2014-09-08 16:05:23 -05:00
Matthew Scragg ad401da4f1 worked on assets bundling, added admin field 2014-09-03 21:29:47 -05:00
Matthew Scragg 564bde872d WIP 2014-09-02 09:29:04 -05:00
Matthew Scragg 86f0549e44 WIP 2014-08-30 10:06:12 -05:00
Matthew Scragg b02d3db684 WIP 2014-08-20 10:28:25 -05:00
Matthew Scragg 5c09cf38b1 config change 2014-01-16 16:22:00 -06:00
Matthew Scragg e18427bfaf salt changes 2014-01-16 16:04:44 -06:00