mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-11-23 03:46:37 +11:00
Don't expose production url.
This commit is contained in:
parent
0d02049951
commit
da13a8ce63
2 changed files with 5 additions and 5 deletions
|
@ -14,10 +14,10 @@ Changelog
|
|||
- 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
|
||||
``cleanup_snipppet`` managemenent command. It's still encouraged to have the
|
||||
management command setup, so snippets which expired but never got fetched
|
||||
by a client are deleted properly.
|
||||
- New AppConfig setting ``APPLICATION_NAME`` that can be used to replace the term
|
||||
"dpaste" throughout the UI.
|
||||
management command setup, just run it daily, so snippets which expired but
|
||||
never got fetched by a client are deleted properly.
|
||||
- New AppConfig setting ``APPLICATION_NAME`` that can be used to replace the
|
||||
term "dpaste" throughout the UI.
|
||||
- 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
|
||||
the stock UI of dpaste.
|
||||
|
|
|
@ -618,7 +618,7 @@ class dpasteAppConfig(AppConfig):
|
|||
site = get_current_site(request)
|
||||
if site:
|
||||
return f"https://{site.domain}"
|
||||
return "https://dpaste.de"
|
||||
return "https://dpaste-base-url.example.org"
|
||||
|
||||
@property
|
||||
def extra_template_context(self):
|
||||
|
|
Loading…
Reference in a new issue