From ef2231f97b5103b687b24f48a28587839b4aae85 Mon Sep 17 00:00:00 2001 From: DogmaDragon <103123951+DogmaDragon@users.noreply.github.com> Date: Thu, 21 Nov 2024 23:28:09 +0200 Subject: [PATCH] Update tripwire link (#5493) --- internal/api/authentication.go | 4 ++-- internal/manager/config/config.go | 2 +- pkg/session/authentication.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/api/authentication.go b/internal/api/authentication.go index 00ef58e5ea5..03b446d868d 100644 --- a/internal/api/authentication.go +++ b/internal/api/authentication.go @@ -16,12 +16,12 @@ import ( const ( tripwireActivatedErrMsg = "Stash is exposed to the public internet without authentication, and is not serving any more content to protect your privacy. " + - "More information and fixes are available at https://docs.stashapp.cc/networking/authentication-required-when-accessing-stash-from-the-internet" + "More information and fixes are available at https://docs.stashapp.cc/faq/setup/#protecting-against-accidental-exposure-to-the-internet" externalAccessErrMsg = "You have attempted to access Stash over the internet, and authentication is not enabled. " + "This is extremely dangerous! The whole world can see your your stash page and browse your files! " + "Stash is not answering any other requests to protect your privacy. " + - "Please read the log entry or visit https://docs.stashapp.cc/networking/authentication-required-when-accessing-stash-from-the-internet" + "Please read the log entry or visit https://docs.stashapp.cc/faq/setup/#protecting-against-accidental-exposure-to-the-internet" ) func allowUnauthenticated(r *http.Request) bool { diff --git a/internal/manager/config/config.go b/internal/manager/config/config.go index 6a568c1da0b..aa7999c5386 100644 --- a/internal/manager/config/config.go +++ b/internal/manager/config/config.go @@ -1533,7 +1533,7 @@ func (i *Config) GetDefaultGenerateSettings() *models.GenerateMetadataOptions { } // GetDangerousAllowPublicWithoutAuth determines if the security feature is enabled. -// See https://docs.stashapp.cc/networking/authentication-required-when-accessing-stash-from-the-internet +// See https://docs.stashapp.cc/faq/setup/#protecting-against-accidental-exposure-to-the-internet func (i *Config) GetDangerousAllowPublicWithoutAuth() bool { return i.getBool(dangerousAllowPublicWithoutAuth) } diff --git a/pkg/session/authentication.go b/pkg/session/authentication.go index d9a02314b80..b0d1b4f5046 100644 --- a/pkg/session/authentication.go +++ b/pkg/session/authentication.go @@ -81,6 +81,6 @@ func LogExternalAccessError(err ExternalAccessError) { "You probably forwarded a port from your router. At the very least, add a password to stash in the settings. \n"+ "Stash will not serve requests until you edit config.yml, remove the security_tripwire_accessed_from_public_internet key and restart stash. \n"+ "This behaviour can be overridden (but not recommended) by setting dangerous_allow_public_without_auth to true in config.yml. \n"+ - "More information is available at https://docs.stashapp.cc/networking/authentication-required-when-accessing-stash-from-the-internet \n"+ + "More information is available at https://docs.stashapp.cc/faq/setup/#protecting-against-accidental-exposure-to-the-internet \n"+ "Stash is not answering any other requests to protect your privacy.", net.IP(err).String()) }