diff --git a/backend/src/app/config.clj b/backend/src/app/config.clj index af708001e..168b8dfcc 100644 --- a/backend/src/app/config.clj +++ b/backend/src/app/config.clj @@ -37,10 +37,6 @@ :local-assets-uri "http://localhost:3449/internal/assets/" - ;; Special configuration for TMP backend. - :storage-tmp-directory "/tmp/penpot" - :storage-tmp-uri "file:///tmp/penpot/" - :rlimits-password 10 :rlimits-image 2 @@ -48,14 +44,12 @@ :smtp-default-reply-to "no-reply@example.com" :smtp-default-from "no-reply@example.com" - :host "devenv" - :allow-demo-users true :registration-enabled true :registration-domain-whitelist "" :telemetry-enabled false - :telemetry-uri "http://localhost:6063/" + :telemetry-uri "https://telemetry.penpot.app/" :debug true @@ -97,7 +91,6 @@ (s/def ::secret-key ::us/string) (s/def ::asserts-enabled ::us/boolean) -(s/def ::host ::us/string) (s/def ::error-report-webhook ::us/string) (s/def ::smtp-enabled ::us/boolean) (s/def ::smtp-default-reply-to ::us/email) @@ -164,7 +157,6 @@ ::gitlab-client-secret ::google-client-id ::google-client-secret - ::host ::http-server-debug ::http-server-port ::http-server-cors diff --git a/backend/src/app/http/errors.clj b/backend/src/app/http/errors.clj index b1a346a04..6ef883d11 100644 --- a/backend/src/app/http/errors.clj +++ b/backend/src/app/http/errors.clj @@ -47,7 +47,7 @@ :method (:request-method request) :params (:params request) :version (:full cfg/version) - :host (:host cfg/config) + :host (:public-uri cfg/config) :class (.getCanonicalName ^java.lang.Class (class error)) :hint (ex-message error)} diff --git a/backend/src/app/srepl/dev.clj b/backend/src/app/srepl/dev.clj index 0e1045f1d..d8d243296 100644 --- a/backend/src/app/srepl/dev.clj +++ b/backend/src/app/srepl/dev.clj @@ -8,8 +8,6 @@ (defn reset-passwords [system] - (when (not= "devenv" (:host cfg/config)) - (throw (ex-info "Can't proceed, only allowed this operation on devenv" {}))) (db/with-atomic [conn (:app.db/pool system)] (let [password (derive-password "123123")] (db/exec! conn ["update profile set password=?" password]))))