Don't expose production url.

This commit is contained in:
Martin Mahner 2019-12-07 07:50:29 +01:00
parent 0d02049951
commit da13a8ce63
2 changed files with 5 additions and 5 deletions

View file

@ -14,10 +14,10 @@ Changelog
- Snippets which are expired are now deleted as soon as they are requested - Snippets which are expired are now deleted as soon as they are requested
by a client. It's not necessary to purge them minutely with the by a client. It's not necessary to purge them minutely with the
``cleanup_snipppet`` managemenent command. It's still encouraged to have the ``cleanup_snipppet`` managemenent command. It's still encouraged to have the
management command setup, so snippets which expired but never got fetched management command setup, just run it daily, so snippets which expired but
by a client are deleted properly. never got fetched by a client are deleted properly.
- New AppConfig setting ``APPLICATION_NAME`` that can be used to replace the term - New AppConfig setting ``APPLICATION_NAME`` that can be used to replace the
"dpaste" throughout the UI. term "dpaste" throughout the UI.
- New AppConfig setting ``EXTRA_HEAD_HTML`` that can be used to add custom HTML - New AppConfig setting ``EXTRA_HEAD_HTML`` that can be used to add custom HTML
to each template, specifically used for custom CSS styles, to easily override to each template, specifically used for custom CSS styles, to easily override
the stock UI of dpaste. the stock UI of dpaste.

View file

@ -618,7 +618,7 @@ class dpasteAppConfig(AppConfig):
site = get_current_site(request) site = get_current_site(request)
if site: if site:
return f"https://{site.domain}" return f"https://{site.domain}"
return "https://dpaste.de" return "https://dpaste-base-url.example.org"
@property @property
def extra_template_context(self): def extra_template_context(self):