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

AUTH - Backend - Environment variables cleanup #18254

Closed
seeker25 opened this issue Oct 20, 2023 · 1 comment
Closed

AUTH - Backend - Environment variables cleanup #18254

seeker25 opened this issue Oct 20, 2023 · 1 comment
Assignees
Labels
Pay Work for Pay Team sbc-connect

Comments

@seeker25
Copy link
Collaborator

seeker25 commented Oct 20, 2023

General cleanup

Add notes for general clean up

for GCP migration

these need to change to migrate to GCP

Database

replace https://github.com/bcgov/sbc-auth/blob/main/auth-api/src/auth_api/config.py#L77

    # POSTGRESQL
    if DB_UNIX_SOCKET := os.getenv("DATABASE_UNIX_SOCKET", None):
        SQLALCHEMY_DATABASE_URI = f"postgresql+psycopg2://{DB_USER}:{DB_PASSWORD}@/{DB_NAME}?host={DB_UNIX_SOCKET}"
    else:
        SQLALCHEMY_DATABASE_URI = f"postgresql://{DB_USER}:{DB_PASSWORD}@{DB_HOST}:{DB_PORT}/{DB_NAME}"

Dockerfile

ENV PORT=8080
CMD gunicorn --bind 0.0.0.0:${PORT} --config /code/gunicorn_config.py wsgi:app

And change to use the port
https://github.com/bcgov/sbc-auth/blob/main/auth-api/wsgi.py#L23

@seeker25
Copy link
Collaborator Author

Hey team! Please add your planning poker estimate with Zenhub @ochiu @rodrigo-barraza

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Pay Work for Pay Team sbc-connect
Projects
None yet
Development

No branches or pull requests

3 participants