Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

FSPT-72: remove unused config #357

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions config/envs/default.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
"""Flask configuration."""

import logging
from distutils.util import strtobool
from os import environ
from os import getenv
from pathlib import Path

from fsd_utils import CommonConfig
Expand All @@ -14,17 +12,11 @@
class DefaultConfig(object):
# Application Config
FLASK_ENV = CommonConfig.FLASK_ENV
SECRET_KEY = CommonConfig.SECRET_KEY
SESSION_COOKIE_NAME = environ.get("SESSION_COOKIE_NAME")
FLASK_ROOT = str(Path(__file__).parent.parent.parent)

# Logging
FSD_LOG_LEVEL = logging.WARNING

# Frontend
STATIC_FOLDER = "static"
TEMPLATES_FOLDER = "templates"
FORCE_OPEN = strtobool(getenv("FORCE_OPEN", "False"))

# Database
SQLALCHEMY_DATABASE_URI = environ.get("DATABASE_URL", "").replace("postgres://", "postgresql://")
2 changes: 0 additions & 2 deletions config/envs/development.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
@configclass
class DevelopmentConfig(Config):
# Application Config
SECRET_KEY = "dev" # pragma: allowlist secret
SESSION_COOKIE_NAME = "session_cookie"
FLASK_ENV = "development"

# Logging
Expand Down
2 changes: 0 additions & 2 deletions config/envs/unit_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
@configclass
class UnitTestConfig(Config):
# Application Config
SECRET_KEY = "test" # pragma: allowlist secret
SESSION_COOKIE_NAME = "session_cookie"

# Logging
FSD_LOG_LEVEL = logging.DEBUG
Expand Down
3 changes: 0 additions & 3 deletions copilot/fsd-fund-store/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ variables:
FLASK_ENV: ${COPILOT_ENVIRONMENT_NAME}
PORT: 8080

secrets:
SECRET_KEY: /copilot/${COPILOT_APPLICATION_NAME}/${COPILOT_ENVIRONMENT_NAME}/secrets/SECRET_KEY

# You can override any of the values defined above by environment.
environments:
dev:
Expand Down