From efca4cce515693770c587e504f7e0df77c5e56db Mon Sep 17 00:00:00 2001 From: Declan Chidlow Date: Fri, 12 Jul 2024 16:37:30 +0800 Subject: [PATCH] Cleanup .env and docker compose --- .dockerignore | 2 -- .env.example | 15 --------------- docker-compose.yml.example | 21 --------------------- 3 files changed, 38 deletions(-) delete mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore deleted file mode 100644 index 0e5c0b0..0000000 --- a/.dockerignore +++ /dev/null @@ -1,2 +0,0 @@ -private/ -db/ diff --git a/.env.example b/.env.example index eb03427..0c87b56 100644 --- a/.env.example +++ b/.env.example @@ -17,9 +17,6 @@ API_URL= # Your bot account's token. BOT_TOKEN= -# A Discord bot token, used for the bridge service. -BOT_TOKEN_DISCORD= - # The default prefix, can be overridden by server owners. # Leave empty to keep default ("/") BOT_PREFIX= @@ -44,10 +41,6 @@ INTERNAL_API_TOKEN= # which gives them access to your server! BOT_OWNERS= -# Optional: A Discord webhook URL which will be -# used to log certain events (bot started, etc). -LOG_WEBHOOK= - # Optional: If set, enables Prometheus metrics # on the specified port (Under /metrics). # Note that no authentication can be configured; @@ -71,11 +64,3 @@ BOT_METRICS_MSG_PING_CHANNEL= PUBLIC_API_URL=http://localhost:9000 PUBLIC_WEB_URL=http://localhost:8080 - -# List of servers to use for bridging Revolt -# emojis to Discord. You will need at least 2 -# servers. Revolt emojis will be automatically -# downloaded and synced to these servers. -# Please note that all other emojis will be deleted. -# Server IDs, divided by commas without spaces in between. -BRIDGE_EMOJI_SERVERS= diff --git a/docker-compose.yml.example b/docker-compose.yml.example index feff2a7..31676eb 100644 --- a/docker-compose.yml.example +++ b/docker-compose.yml.example @@ -51,27 +51,6 @@ services: - 0.0.0.0:9000:9000 restart: unless-stopped - bridge: - build: - context: . - dockerfile: ./bridge/Dockerfile - environment: - - REVOLT_TOKEN=${BOT_TOKEN} - - DISCORD_TOKEN=${BOT_TOKEN_DISCORD} - - DB_STRING=mongodb://mogus:${DB_PASS}@mongo:27017/admin - - NODE_ENV=production - - BRIDGE_METRICS_PORT - - REVOLT_API_URL=${API_URL} - - EMOJI_SERVERS=${BRIDGE_EMOJI_SERVERS} - # Uncomment if you enabled Prometheus metrics - #ports: - # - 127.0.0.1:${BRIDGE_METRICS_PORT}:${BRIDGE_METRICS_PORT} - restart: unless-stopped - depends_on: - - mongo - - # If you prefer to host the web app on a different - # platform like Vercel, you can remove this part. web: build: context: .