diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index c3148ba..c6af321 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -41,12 +41,7 @@ jobs: API_KEY_SALT: ${{ secrets.API_KEY_SALT }} AUTH_TOKEN_KEY: ${{ secrets.AUTH_TOKEN_KEY }} UID_ENCRYPTION_KEY: ${{ secrets.UID_ENCRYPTION_KEY }} - INTERNAL_API_ENABLED: "true" - INTERNAL_API_TIME_WINDOW_SECONDS: "300" - INTERNAL_API_HOTGO_SERVICE_NAME: hotgo-admin ADMIN_INTERNAL_API_BASE_URL: ${{ secrets.ADMIN_INTERNAL_API_BASE_URL }} - ADMIN_INTERNAL_API_ENABLED: "true" - ADMIN_INTERNAL_API_SERVICE_NAME: im-server ADMIN_INTERNAL_API_SECRET: ${{ secrets.ADMIN_INTERNAL_API_SECRET }} INTERNAL_API_HOTGO_SECRET: ${{ secrets.INTERNAL_API_HOTGO_SECRET }} run: | diff --git a/docker/tinode/config.template b/docker/tinode/config.template index 56792ba..0f52852 100644 --- a/docker/tinode/config.template +++ b/docker/tinode/config.template @@ -151,17 +151,17 @@ } }, "internal_api": { - "enabled": $INTERNAL_API_ENABLED, - "time_window_seconds": $INTERNAL_API_TIME_WINDOW_SECONDS, + "enabled": true, + "time_window_seconds": 300, "services": { - "$INTERNAL_API_HOTGO_SERVICE_NAME": { + "hotgo-admin": { "secret": "$INTERNAL_API_HOTGO_SECRET", "allow": ["admin_query"] } } }, "admin_internal_api": { - "enabled": $ADMIN_INTERNAL_API_ENABLED, + "enabled": true, "base_url": "$ADMIN_INTERNAL_API_BASE_URL", "service_name": "$ADMIN_INTERNAL_API_SERVICE_NAME", "secret": "$ADMIN_INTERNAL_API_SECRET",