Skip to content

Commit

Permalink
fix: add freezer base url option
Browse files Browse the repository at this point in the history
  • Loading branch information
Wivik committed Apr 26, 2023
1 parent c06e99d commit 40fb763
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app.py
Expand Up @@ -22,6 +22,7 @@
arg_parser.add_argument('-d', '--debug', dest='debug', action='store_true', default=False, help='Enable Flask debug mode')
arg_parser.add_argument('--host', dest='host', action='store', default='127.0.0.1', help='Host exposition. Set 0.0.0.0 for outside localhost.')
arg_parser.add_argument('-p', '--port', dest='port', action='store', default='5000', help='Expose port (default 5000)')
arg_parser.add_argument('--freezer-base-url', dest='freezer_base_url', action='store', default=None, help='Set FREEZER_BASE_URL setting, required if the static website is not at the root of the domain name.')
args = arg_parser.parse_args()

## solutions file is expected to be an env var
Expand All @@ -44,6 +45,9 @@
print('Could not create data dir')
raise

if args.freezer_base_url is not None:
app.config['FREEZER_BASE_URL'] = args.freezer_base_url

## here we go

def markdown_filter(text):
Expand Down

0 comments on commit 40fb763

Please sign in to comment.