Closed vitaleg closed 1 week ago
services: postiz: image: ghcr.io/gitroomhq/postiz-app:latest container_name: postiz restart: always environment: # You must change these. Replace `postiz.your-server.com` with your DNS name - what your web browser sees. MAIN_URL: "https://***********" FRONTEND_URL: "https://***********" NEXT_PUBLIC_BACKEND_URL: "https://***********/api" JWT_SECRET: "***********" # These defaults are probably fine, but if you change your user/password, update it in the # postiz-postgres or postiz-redis services below. DATABASE_URL: "postgresql://postiz-user:***********@postiz-postgres:5432/postiz-db-local" REDIS_URL: "redis://postiz-redis:6379" BACKEND_INTERNAL_URL: "http://localhost:3000" IS_GENERAL: "true" # Required for self-hosting. # The container images are pre-configured to use /uploads for file storage. # You probably should not change this unless you have a really good reason! STORAGE_PROVIDER: "local" UPLOAD_DIRECTORY: "/uploads" NEXT_PUBLIC_UPLOAD_DIRECTORY: "/uploads" NODE_TLS_REJECT_UNAUTHORIZED: "0" EMAIL_FROM_NAME: "Postiz" EMAIL_FROM_ADDRESS: "***@*****.***" EMAIL_PROVIDER: "nodemailer" EMAIL_HOST: "*****" # smtp host if you choose nodemailer EMAIL_PORT: "465" # smtp port if you choose nodemailer EMAIL_SECURE: "true" # smtp secure if you choose nodemailer EMAIL_USER: "***********" EMAIL_PASS: "***********" DISCORD_CLIENT_ID: "***********" DISCORD_CLIENT_SECRET: "***********" DISCORD_BOT_TOKEN_ID: "***********" volumes: - ./postiz-config:/config/ - ./postiz-uploads:/uploads/ ports: - 5000:5000 networks: - postiz-network depends_on: postiz-postgres: condition: service_healthy postiz-redis: condition: service_healthy postiz-postgres: image: postgres:17-alpine container_name: postiz-postgres restart: always environment: POSTGRES_PASSWORD: *********** POSTGRES_USER: postiz-user POSTGRES_DB: postiz-db-local volumes: - ./postgres-volume:/var/lib/postgresql/data networks: - postiz-network healthcheck: test: pg_isready -U postiz-user -d postiz-db-local interval: 10s timeout: 3s retries: 3 postiz-redis: image: redis:7.2 container_name: postiz-redis restart: always healthcheck: test: redis-cli ping interval: 10s timeout: 3s retries: 3 volumes: - ./postiz-redis-data:/data networks: - postiz-network volumes: postgres-volume: external: false postiz-redis-data: external: false postiz-config: external: false postiz-uploads: external: false networks: postiz-network: external: false
postiz | [Nest] 163 - 11/24/2024, 9:03:00 PM ERROR [ExceptionsHandler] Request failed with status code 404 postiz | AxiosError: Request failed with status code 404 postiz | at settle (/app/node_modules/axios/dist/node/axios.cjs:2019:12) postiz | at IncomingMessage.handleStreamEnd (/app/node_modules/axios/dist/node/axios.cjs:3135:11) postiz | at IncomingMessage.emit (node:events:531:35) postiz | at endReadableNT (node:internal/streams/readable:1696:12) postiz | at process.processTicksAndRejections (node:internal/process/task_queues:82:21) postiz | at Axios.request (/app/node_modules/axios/dist/node/axios.cjs:4287:41) postiz | at process.processTicksAndRejections (node:internal/process/task_queues:95:5) postiz | at async LocalStorage.uploadSimple (/app/dist/apps/backend/main.js:3075:27) postiz | at async IntegrationService.createOrUpdateIntegration (/app/dist/apps/backend/main.js:2456:43) postiz | at async /app/node_modules/@nestjs/core/router/router-execution-context.js:46:28 postiz | at async /app/node_modules/@nestjs/core/router/router-proxy.js:9:17
DISCORD_BOT_TOKEN_ID is exactly correct. Any ideas why this might be happening?
Found a solution in Discord in Ticket: “Postiz Discord Integration Error: Redirect Issue”
Need to upload an avatar to the bot.
cat docker-compose.yml
DISCORD_BOT_TOKEN_ID is exactly correct. Any ideas why this might be happening?