Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: support running admin app independently #7009

Open
Shiti opened this issue Feb 8, 2025 · 0 comments
Open

feature request: support running admin app independently #7009

Shiti opened this issue Feb 8, 2025 · 0 comments
Labels
feature-request Something cool or not cool

Comments

@Shiti
Copy link

Shiti commented Feb 8, 2025

What problem did you meet?

I ran into an issue cos I was trying to run logto on Google cloud run which requires setting the environment variable PORT to be used by the load balancer. Only one port can be configured per service. So, I started logto as 2 separate jobs - one for the core app and one for admin.
The issue was that for admin service, the core app still runs and uses the environment variable PORT. For load balancing to work correctly for my admin instance, the PORT environment variable's value should be that of ADMIN_PORT.

Describe what you'd like Logto to have

I can think of two ways that could help:

  1. Allow disabling core app for the admin only instance. It would rely on the ENDPOINT url to co-ordinate with the core app.
  2. Change environment variable name used for configuring port.

I worked around this was by publishing a custom image - using APP_PORT and ADMIN_APP_PORT instead of PORT and ADMIN_PORT

@simeng-li simeng-li added the feature-request Something cool or not cool label Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Something cool or not cool
Development

No branches or pull requests

2 participants