From 0bb17cd2f34918add1ddaedeb0a66531dea561a3 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Sun, 7 Sep 2025 17:32:13 +0200 Subject: go-away: use config.yml and vendor all configuration files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Robert Günzler --- bundles/go-away/files/config/config.yml | 90 +++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 bundles/go-away/files/config/config.yml (limited to 'bundles/go-away/files/config/config.yml') diff --git a/bundles/go-away/files/config/config.yml b/bundles/go-away/files/config/config.yml new file mode 100644 index 0000000..df731a7 --- /dev/null +++ b/bundles/go-away/files/config/config.yml @@ -0,0 +1,90 @@ +bind: + # XXX: coordinate with traefik + address: "0.0.0.0:${node.metadata.get('go-away/port')}" + network: "tcp" + + # Enable PROXY mode on this listener, to allow passing origin info. Default false + proxy: true + + # Enable passthrough mode, which will allow traffic onto the backends while rules load. Default false + #passthrough: true + +# Bind the Go debug port +#bind-debug: ":6060" + +# Bind the Prometheus metrics onto /metrics path on this port +bind-metrics: "0.0.0.0:${node.metadata.get('go-away-metrics/port')}" + + +# Advanced backend configuration +# Backends setup via cmdline will be added here +backends: + "gzr.im": + url: "http://${node.metadata.get('container_gateway', '10.89.0.1')}:${node.metadata.get('www/gzr-im/port')}" + http2-enabled: true + "gnzler.de": + url: "http://${node.metadata.get('container_gateway', '10.89.0.1')}:${node.metadata.get('www/gzr-im/port')}" + http2-enabled: true + "gnzler.io": + url: "http://${node.metadata.get('container_gateway', '10.89.0.1')}:${node.metadata.get('www/gzr-im/port')}" + http2-enabled: true + "gonca.me": + url: "http://${node.metadata.get('container_gateway', '10.89.0.1')}:${node.metadata.get('www/gonca-me/port')}" + http2-enabled: true + + +# These links will be shown on the presented challenge or error pages +links: + #- name: Privacy + # url: "/privacy.html" + #- name: Contact + # url: "mailto:admin@example.com" + #- name: Donations + # url: "https://donations.example.com/abcd" + +# HTML Template to use for challenge or error pages +# External templates can be included by providing a disk path +# Bundled templates: +# anubis: An Anubis-like template with no configuration parameters +# forgejo: Looks like native Forgejo. Includes logos and resources from your instance. Supports Theme. +# +challenge-template: "anubis" + +# Allows overriding specific settings set on templates. Key-Values will be passed to templates as-is +challenge-template-overrides: + # Set template theme if supported + #Theme: "forgejo-auto" + +# List of strings you can replace to alter the presentation on challenge/error templates +# Can use other languages. +# Note raw HTML is allowed, be careful with it. +# Default strings exist in code, uncomment any to set it +strings: + #title_challenge: "Checking you are not a bot" + #title_error: "Oh no!" + #noscript_warning: "

Sadly, you may need to enable JavaScript to get past this challenge. This is required because AI companies have changed the social contract around how website hosting works.

" + #details_title: "Why am I seeing this?" + #details_text: > + #

+ # You are seeing this because the administrator of this website has set up go-away + # to protect the server against the scourge of AI companies aggressively scraping websites. + #

+ #

+ # Mass scraping can and does cause downtime for the websites, which makes their resources inaccessible for everyone. + #

+ #

+ # Please note that some challenges requires the use of modern JavaScript features and some plugins may disable these. + # Disable such plugins for this domain (for example, JShelter) if you encounter any issues. + #

+ + #details_contact_admin_with_request_id: "If you have any issues contact the site administrator and provide the following Request Id" + + #button_refresh_page: "Refresh page" + + #status_loading_challenge: "Loading challenge" + #status_starting_challenge: "Starting challenge" + #status_loading: "Loading..." + #status_calculating: "Calculating..." + #status_challenge_success: "Challenge success!" + #status_challenge_done_took: "Done! Took" + #status_error: "Error:" -- cgit 1.4.1