From 147c80dce598de0c3f97b08aa482dacb855b9808 Mon Sep 17 00:00:00 2001 From: Yann Stepienik Date: Sat, 11 Nov 2023 13:33:58 +0000 Subject: [PATCH] Piped --- servapps/Piped/artefacts/config.properties | 37 ++++++++++++++++++++++ servapps/Piped/cosmos-compose.json | 18 ++++------- 2 files changed, 44 insertions(+), 11 deletions(-) create mode 100644 servapps/Piped/artefacts/config.properties diff --git a/servapps/Piped/artefacts/config.properties b/servapps/Piped/artefacts/config.properties new file mode 100644 index 00000000..91ee7ad8 --- /dev/null +++ b/servapps/Piped/artefacts/config.properties @@ -0,0 +1,37 @@ +# The port to Listen on. +PORT: 8080 + +# The number of workers to use for the server +HTTP_WORKERS: 2 + +# Proxy +PROXY_PART: _RPOXY_URL_ + +# Outgoing HTTP Proxy - eg: 127.0.0.1:8118 +#HTTP_PROXY: 127.0.0.1:8118 + +# Captcha Parameters +CAPTCHA_BASE_URL: https://api.capmonster.cloud/ +CAPTCHA_API_KEY: INSERT_HERE + +# Public API URL +API_URL: _API_URL_ + +# Public Frontend URL +FRONTEND_URL: _FE_URL_ + +# Enable haveibeenpwned compromised password API +COMPROMISED_PASSWORD_CHECK: true + +# Disable Registration +DISABLE_REGISTRATION: false + +# Feed Retention Time in Days +FEED_RETENTION: 30 + +# Hibernate properties +hibernate.connection.url: jdbc:postgresql://_DB_URL_:5432/piped +hibernate.connection.driver_class: org.postgresql.Driver +hibernate.dialect: org.hibernate.dialect.PostgreSQLDialect +hibernate.connection.username: piped +hibernate.connection.password: _DB_PASSWORD_ \ No newline at end of file diff --git a/servapps/Piped/cosmos-compose.json b/servapps/Piped/cosmos-compose.json index 1b7250ff..7ab6d29a 100644 --- a/servapps/Piped/cosmos-compose.json +++ b/servapps/Piped/cosmos-compose.json @@ -1,13 +1,5 @@ { "cosmos-installer": { - "form": [ - { - "name": "configPath", - "label": "What is the path to your config.properties? (See https://github.com/TeamPiped/Piped-Docker/blob/main/template/config.properties and replace anything with _HOSTNAME to match the routes generated)", - "initialValue": "{DefaultDataPath}/config/config.properties", - "type": "text" - } - ] }, "services": { "{ServiceName}": { @@ -102,11 +94,15 @@ "depends_on": [ "{ServiceName}-postgres" ], + "post_install": [ + "wget -O /app/config.properties http://azukaar.github.io/cosmos-servapps-official/servapps/Piped/artefacts/config.properties", + + ], "volumes": [ { - "source": "{Context.configPath}", - "target": "/app/config.properties", - "type": "bind" + "source": "{ServiceName}-backend", + "target": "/app", + "type": "volume" } ], "container_name": "{ServiceName}-backend",