Skip to content

Commit

Permalink
versioning and other stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgorgo committed Jun 2, 2017
1 parent 7062626 commit 8a749e8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dockereve-master/eve-app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def check_auth(self, token, allowed_roles, resource, method):
# required. See http://swagger.io/specification/#infoObject for details.
app.config['SWAGGER_INFO'] = {
'title': 'MRIQC Web API',
'version': '0.1',
'version': 'v1',
'description': 'MRI Quality Control Metrics Repository',
}

Expand Down
3 changes: 3 additions & 0 deletions dockereve-master/eve-app/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,9 @@


settings = {
'URL_PREFIX': 'api',
'API_VERSION': 'v1',
'ALLOWED_FILTERS': ['*'],
'MONGO_HOST': os.environ.get('MONGODB_HOST', ''),
'MONGO_PORT': os.environ.get('MONGODB_PORT', ''),
'MONGO_DBNAME': 'mriqc_api',
Expand Down
2 changes: 1 addition & 1 deletion dockereve-master/nginx/sites-enabled/eve_project
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ server {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}

location /docs/ {
location = / {
proxy_pass http://swagger_ui:8080/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
Expand Down

0 comments on commit 8a749e8

Please sign in to comment.