mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-11-23 11:56:36 +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
|
- 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.
|
||||||
|
|
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue