From 5b69dbd41103de917837b06a60944319f4b66cb9 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Sun, 19 Apr 2026 09:56:07 +0300 Subject: Add policy page, format code --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index d6cd38f..ebe067c 100644 --- a/README.md +++ b/README.md @@ -36,9 +36,14 @@ You can also run the app without containerization: | EMAIL_USE_TLS | Use STARTTLS with SMTP? | | EMAIL_HEADERS | Additional SMTP headers, format: `header1=foo,header2=bar` | | EMAIL_MESSAGE_FROM | Email message from address | +| POLICY_URL | Address of the policy & terms page | +| POLICY_INSTANCE_DOMAIN | The domain part of the BASE_URL | +| POLICY_CONTACT_EMAIL | Your contact email | `EMAIL_` variables are only required if at least one of them is defined. +`POLICY_` variables are used for the Privacy policy & Terms of use page. See relevant section below. + ## Screenshots ### Front page @@ -62,3 +67,9 @@ You can also run the app without containerization: Run Flask in dev mode: flask --app app --debug run -p 8000 + +## Privacy policy and Terms of use page + +By defining a privacy and terms address in `POLICY_URL`, a link to it is rendered in the front page footer. You may set the value to `/policy` and create a `templates/policy.html.j2` file to serve a policy page as part of the app. The repository contains a sample policy template in `templates/policy_sample.html.j2` that uses the environment variables `POLICY_INSTANCE_DOMAIN` and `POLICY_CONTACT_EMAIL`. You may copy that sample to `templates/policy.html.j2` and make necessary changes to reflect the reality of your hosted environment. + +The developers of `diddle` take no responsibility about the content and legality of any policy you display to your users, whether it's based on the sample policy or not. -- cgit v1.3