1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2025-10-12 21:20:23 +02:00
This commit is contained in:
binwiederhier 2025-08-24 13:52:04 -04:00
parent 3de04b27ab
commit 4f6f45a9c0
2 changed files with 5 additions and 3 deletions

View file

@ -320,10 +320,12 @@ func execServe(c *cli.Context) error {
return errors.New("if upstream-base-url is set, base-url must also be set")
} else if upstreamBaseURL != "" && baseURL != "" && baseURL == upstreamBaseURL {
return errors.New("base-url and upstream-base-url cannot be identical, you'll likely want to set upstream-base-url to https://ntfy.sh, see https://ntfy.sh/docs/config/#ios-instant-notifications")
} else if authFile == "" && (enableSignup || enableLogin || enableReservations || stripeSecretKey != "") {
return errors.New("cannot set enable-signup, enable-login, enable-reserve-topics, or stripe-secret-key if auth-file is not set")
} else if authFile == "" && (enableSignup || enableLogin || requireLogin || enableReservations || stripeSecretKey != "") {
return errors.New("cannot set enable-signup, enable-login, require-login, enable-reserve-topics, or stripe-secret-key if auth-file is not set")
} else if enableSignup && !enableLogin {
return errors.New("cannot set enable-signup without also setting enable-login")
} else if requireLogin && !enableLogin {
return errors.New("cannot set require-login without also setting enable-login")
} else if !payments.Available && (stripeSecretKey != "" || stripeWebhookKey != "") {
return errors.New("cannot set stripe-secret-key or stripe-webhook-key, support for payments is not available in this build (nopayments)")
} else if stripeSecretKey != "" && (stripeWebhookKey == "" || baseURL == "") {

View file

@ -6,7 +6,7 @@
// During web development, you may change values here for rapid testing.
var config = {
base_url: "http://localhost:8080", // window.location.origin, // Change to test against a different server
base_url: window.location.origin, // Change to test against a different server
app_root: "/",
enable_login: true,
require_login: true,