Skip to content

Commit

Permalink
Piped
Browse files Browse the repository at this point in the history
  • Loading branch information
azukaar committed Nov 11, 2023
1 parent 6d3f566 commit 147c80d
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 11 deletions.
37 changes: 37 additions & 0 deletions servapps/Piped/artefacts/config.properties
Original file line number Diff line number Diff line change
@@ -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_
18 changes: 7 additions & 11 deletions servapps/Piped/cosmos-compose.json
Original file line number Diff line number Diff line change
@@ -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}": {
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 147c80d

Please sign in to comment.