mirror of https://github.com/lukechilds/umbrel.git
Jonathan Zernik
3 years ago
committed by
GitHub
10 changed files with 132 additions and 0 deletions
@ -0,0 +1,8 @@ |
|||
#!/usr/bin/env sh |
|||
|
|||
# Update configs |
|||
/filebrowser config init |
|||
/filebrowser config set --branding.name "Agora Admin" |
|||
/filebrowser users add umbrel ${APP_PASSWORD} |
|||
|
|||
exec /filebrowser -p 8080 --baseurl "/admin/files" |
@ -0,0 +1,14 @@ |
|||
<!doctype html> |
|||
<html> |
|||
<head> |
|||
<title>Agora Admin</title> |
|||
</head> |
|||
<body> |
|||
<h1>Welcome to Agora Admin!</h1> |
|||
<ul> |
|||
<li><a href="/">Download files</a></li> |
|||
<li><a href="/admin/files">Manage files</a></li> |
|||
<li><a href="https://github.com/agora-org/agora#access-configuration">Agora Configuration Docs</a></li> |
|||
</ul> |
|||
</body> |
|||
</html> |
@ -0,0 +1,49 @@ |
|||
version: "3.7" |
|||
|
|||
services: |
|||
filebrowser: |
|||
image: filebrowser/filebrowser:v2.21.1@sha256:6da71bfffc1345075a5cc06e0a7ae270098186407c62f4f71994e079677364d0 |
|||
user: 1000:1000 |
|||
restart: on-failure |
|||
stop_grace_period: 1m |
|||
volumes: |
|||
- ${APP_DATA_DIR}/files:/srv |
|||
- ${APP_DATA_DIR}/database/filebrowser.db:/database.db |
|||
- ${APP_DATA_DIR}/data:/data |
|||
environment: |
|||
APP_PASSWORD: "$APP_PASSWORD" |
|||
entrypoint: /data/entrypoint.sh |
|||
|
|||
agora: |
|||
image: ghcr.io/agora-org/agora:sha-48d3205@sha256:35eda120a8d868c7fa3b9cbdcad7cc2245b9fe7e0c5356c8091bb0bf9a65222d |
|||
restart: on-failure |
|||
stop_grace_period: 1m |
|||
volumes: |
|||
- ${APP_DATA_DIR}/files:/files |
|||
- ${LND_DATA_DIR}:/lnd:ro |
|||
user: "1000:1000" |
|||
environment: |
|||
# LND environment variables |
|||
LND_RPC_AUTHORITY: "$LND_IP:$LND_GRPC_PORT" |
|||
TLS_CERT_PATH: "/lnd/tls.cert" |
|||
INVOICES_MACAROON_PATH: "/lnd/data/chain/bitcoin/$BITCOIN_NETWORK/invoice.macaroon" |
|||
|
|||
# App specific environment variables |
|||
FILES_DIR: "/files" |
|||
AGORA_PORT: 8080 |
|||
|
|||
nginx: |
|||
image: nginx:1.19-alpine@sha256:c2ce58e024275728b00a554ac25628af25c54782865b3487b11c21cafb7fabda |
|||
init: true |
|||
restart: on-failure |
|||
volumes: |
|||
- ${APP_DATA_DIR}/nginx/nginx.conf:/etc/nginx/nginx.conf |
|||
- ${APP_DATA_DIR}/data/www:/usr/share/nginx/html |
|||
ports: |
|||
- "$APP_AGORA_PORT:80" |
|||
depends_on: |
|||
- agora |
|||
- filebrowser |
|||
networks: |
|||
default: |
|||
ipv4_address: $APP_AGORA_IP |
@ -0,0 +1,26 @@ |
|||
events { } |
|||
|
|||
http { |
|||
|
|||
|
|||
server { |
|||
listen 80; |
|||
server_name _; |
|||
|
|||
location / { |
|||
proxy_pass http://agora:8080; |
|||
} |
|||
|
|||
location /admin { |
|||
root /usr/share/nginx/html; |
|||
index index.html; |
|||
} |
|||
|
|||
location /admin/files { |
|||
client_max_body_size 0; |
|||
proxy_pass http://filebrowser:8080; |
|||
} |
|||
|
|||
} |
|||
|
|||
} |
Loading…
Reference in new issue