From da13a8ce630dfd37630daa6fc39ec4c7f7a8f8a1 Mon Sep 17 00:00:00 2001 From: Martin Mahner Date: Sat, 7 Dec 2019 07:50:29 +0100 Subject: [PATCH] Don't expose production url. --- CHANGELOG.rst | 8 ++++---- dpaste/apps.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index d044f5f..236a969 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -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. diff --git a/dpaste/apps.py b/dpaste/apps.py index 6196c52..4e5ee3d 100644 --- a/dpaste/apps.py +++ b/dpaste/apps.py @@ -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):