Skip to content

Commit

Permalink
Make app load port and kite details from config
Browse files Browse the repository at this point in the history
  • Loading branch information
BjarniRunar committed Sep 26, 2022
1 parent 441a558 commit 2ee4f2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions moggie/workers/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ class AppWorker(PublicWorker):
KIND = 'app'
PUBLIC_PATHS = ['/', '/ws', '/jmap']
PUBLIC_PREFIXES = ['/pile', '/.well-known/']
CONFIG_SECTION = 'App'

def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
Expand Down
2 changes: 1 addition & 1 deletion moggie/workers/public.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def get_handler(self, path, headers):
public = True
break

secret = None
secret = ''
if not public:
try:
_, secret, path = path.split('/', 2)
Expand Down

0 comments on commit 2ee4f2f

Please sign in to comment.