From e45f9b3bae5fbe6ae7044e7d7a3e541cb55e29e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Hells=C3=A9n?= Date: Sun, 4 Feb 2024 21:41:48 +0100 Subject: [PATCH] Add privacy policy --- main.go | 8 ++++++- templates/about.tmpl | 16 ------------- templates/base.tmpl | 2 +- templates/privacy.tmpl | 52 ++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 60 insertions(+), 18 deletions(-) delete mode 100644 templates/about.tmpl create mode 100644 templates/privacy.tmpl diff --git a/main.go b/main.go index 9a3315f..67b5de7 100644 --- a/main.go +++ b/main.go @@ -43,6 +43,7 @@ func main() { log.Println("Starting FeedVault...") // Scrape the bad URLs in the background + // TODO: Run this in a goroutine scrapeBadURLs() // Create a new router @@ -55,9 +56,9 @@ func main() { r.Get("/", IndexHandler) r.Get("/api", ApiHandler) - r.Get("/about", AboutHandler) r.Get("/donate", DonateHandler) r.Get("/feeds", FeedsHandler) + r.Get("/privacy", PrivacyHandler) r.Post("/add", AddFeedHandler) r.Handle("/static/*", http.StripPrefix("/static/", http.FileServer(http.Dir("static")))) @@ -71,6 +72,7 @@ func main() { func scrapeBadURLs() { // TODO: We should only scrape the bad URLs if the file has been updated + // TODO: Use brotli compression https://gitlab.com/malware-filter/urlhaus-filter#compressed-version filterListURLs := []string{ "https://malware-filter.gitlab.io/malware-filter/phishing-filter-dnscrypt-blocked-names.txt", "https://malware-filter.gitlab.io/malware-filter/urlhaus-filter-dnscrypt-blocked-names-online.txt", @@ -214,6 +216,10 @@ func FeedsHandler(w http.ResponseWriter, _ *http.Request) { renderPage(w, "Feeds", "Feeds Page", "feeds, page", "TheLovinator", "http://localhost:8000/feeds", "feeds") } +func PrivacyHandler(w http.ResponseWriter, _ *http.Request) { + renderPage(w, "Privacy", "Privacy Page", "privacy, page", "TheLovinator", "http://localhost:8000/privacy", "privacy") +} + // Run some simple validation on the URL func validateURL(feed_url string) error { // Check if URL starts with http or https diff --git a/templates/about.tmpl b/templates/about.tmpl deleted file mode 100644 index 47be9d1..0000000 --- a/templates/about.tmpl +++ /dev/null @@ -1,16 +0,0 @@ -{{ define "content" }} -

Feeds to archive

-

- Input the URLs of the feeds you wish to archive below. You can add as many as needed, and access them through the website or API. Alternatively, include links to .opml files, and the feeds within will be archived. -

-
- - -
-
-

You can also upload .opml files containing the feeds you wish to archive:

-
- - -
-{{ end }} diff --git a/templates/base.tmpl b/templates/base.tmpl index 752f8de..f943530 100644 --- a/templates/base.tmpl +++ b/templates/base.tmpl @@ -68,7 +68,7 @@ hello@feedvault.se
- Terms of Service | Privacy Policy + Terms of Service | Privacy Policy
diff --git a/templates/privacy.tmpl b/templates/privacy.tmpl new file mode 100644 index 0000000..a9caa1a --- /dev/null +++ b/templates/privacy.tmpl @@ -0,0 +1,52 @@ +{{ define "content" }} +
+
+
+

Privacy Policy

+
+

+ Last Updated: + +

+
+

Information Collection

+

We gather the following data:

+
    +
  • Log Files: These files contain details about your IP address, browser, and operating system.
  • +
      +
    • This information is collected for debugging purposes and to enhance website performance.
    • +
    • Log files are automatically removed after a specific timeframe.
    • +
    • They are not linked to any personal information, shared with third parties, or used for marketing purposes.
    • +
    • Furthermore, log files are not utilized to track your activity on other websites.
    • +
    +
  • Cloudflare: We use Cloudflare to secure and optimize our website.
  • +
      +
    • Cloudflare may collect your IP address, cookies, and other data.
    • +
    • For more information, please review Cloudflare's privacy policy.
    • +
    +
+
+
+

User Rights

+

+ You have the right to access, correct, or delete your information. Any privacy-related inquiries can be directed to us using the contact information provided at the end of this document. +

+
+
+

Changes to the Privacy Policy

+

+ This privacy policy may be revised. You can review the revision history of this document on our GitHub repository here. +

+
+
+

Contact Information

+

+ For privacy concerns or questions, you can reach us via email at hello@feedvault.se or by creating an issue on our GitHub repository. +

+

Cloudflare's contact information can be found here.

+
+
+
+{{ end }}