mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-14 16:47:02 +02:00
Add new developer sandbox ko infrastructure
This commit is contained in:
parent
714574ec1a
commit
31e970f153
4 changed files with 35 additions and 10 deletions
1
.github/workflows/migrate.yaml
vendored
1
.github/workflows/migrate.yaml
vendored
|
@ -14,6 +14,7 @@ on:
|
||||||
description: Which environment should we run migrations for?
|
description: Which environment should we run migrations for?
|
||||||
options:
|
options:
|
||||||
- stable
|
- stable
|
||||||
|
- ko
|
||||||
- ab
|
- ab
|
||||||
- bl
|
- bl
|
||||||
- rjm
|
- rjm
|
||||||
|
|
1
.github/workflows/reset-db.yaml
vendored
1
.github/workflows/reset-db.yaml
vendored
|
@ -15,6 +15,7 @@ on:
|
||||||
description: Which environment should we flush and re-load data for?
|
description: Which environment should we flush and re-load data for?
|
||||||
options:
|
options:
|
||||||
- stable
|
- stable
|
||||||
|
- ko
|
||||||
- ab
|
- ab
|
||||||
- bl
|
- bl
|
||||||
- rjm
|
- rjm
|
||||||
|
|
29
ops/manifests/manifest-ko.yaml
Normal file
29
ops/manifests/manifest-ko.yaml
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
---
|
||||||
|
applications:
|
||||||
|
- name: getgov-ko
|
||||||
|
buildpacks:
|
||||||
|
- python_buildpack
|
||||||
|
path: ../../src
|
||||||
|
instances: 1
|
||||||
|
memory: 512M
|
||||||
|
stack: cflinuxfs4
|
||||||
|
timeout: 180
|
||||||
|
command: ./run.sh
|
||||||
|
health-check-type: http
|
||||||
|
health-check-http-endpoint: /health
|
||||||
|
env:
|
||||||
|
# Send stdout and stderr straight to the terminal without buffering
|
||||||
|
PYTHONUNBUFFERED: yup
|
||||||
|
# Tell Django where to find its configuration
|
||||||
|
DJANGO_SETTINGS_MODULE: registrar.config.settings
|
||||||
|
# Tell Django where it is being hosted
|
||||||
|
DJANGO_BASE_URL: https://getgov-ko.app.cloud.gov
|
||||||
|
# Tell Django how much stuff to log
|
||||||
|
DJANGO_LOG_LEVEL: INFO
|
||||||
|
# default public site location
|
||||||
|
GETGOV_PUBLIC_SITE_URL: https://beta.get.gov
|
||||||
|
routes:
|
||||||
|
- route: getgov-ko.app.cloud.gov
|
||||||
|
services:
|
||||||
|
- getgov-credentials
|
||||||
|
- getgov-ko-database
|
|
@ -48,7 +48,6 @@ env_db_url = env.dj_db_url("DATABASE_URL")
|
||||||
env_debug = env.bool("DJANGO_DEBUG", default=False)
|
env_debug = env.bool("DJANGO_DEBUG", default=False)
|
||||||
env_log_level = env.str("DJANGO_LOG_LEVEL", "DEBUG")
|
env_log_level = env.str("DJANGO_LOG_LEVEL", "DEBUG")
|
||||||
env_base_url = env.str("DJANGO_BASE_URL")
|
env_base_url = env.str("DJANGO_BASE_URL")
|
||||||
env_getgov_public_site_url = env.str("GETGOV_PUBLIC_SITE_URL", "")
|
|
||||||
|
|
||||||
secret_login_key = b64decode(secret("DJANGO_SECRET_LOGIN_KEY", ""))
|
secret_login_key = b64decode(secret("DJANGO_SECRET_LOGIN_KEY", ""))
|
||||||
secret_key = secret("DJANGO_SECRET_KEY")
|
secret_key = secret("DJANGO_SECRET_KEY")
|
||||||
|
@ -63,6 +62,8 @@ secret_registry_key = b64decode(secret("REGISTRY_KEY", ""))
|
||||||
secret_registry_key_passphrase = secret("REGISTRY_KEY_PASSPHRASE", "")
|
secret_registry_key_passphrase = secret("REGISTRY_KEY_PASSPHRASE", "")
|
||||||
secret_registry_hostname = secret("REGISTRY_HOSTNAME")
|
secret_registry_hostname = secret("REGISTRY_HOSTNAME")
|
||||||
|
|
||||||
|
secret_getgov_public_site_url = secret("GETGOV_PUBLIC_SITE_URL", "")
|
||||||
|
|
||||||
# region: Basic Django Config-----------------------------------------------###
|
# region: Basic Django Config-----------------------------------------------###
|
||||||
|
|
||||||
# Build paths inside the project like this: BASE_DIR / "subdir".
|
# Build paths inside the project like this: BASE_DIR / "subdir".
|
||||||
|
@ -133,8 +134,6 @@ MIDDLEWARE = [
|
||||||
"django.middleware.csrf.CsrfViewMiddleware",
|
"django.middleware.csrf.CsrfViewMiddleware",
|
||||||
# add `user` (the currently-logged-in user) to incoming HttpRequest objects
|
# add `user` (the currently-logged-in user) to incoming HttpRequest objects
|
||||||
"django.contrib.auth.middleware.AuthenticationMiddleware",
|
"django.contrib.auth.middleware.AuthenticationMiddleware",
|
||||||
# Require login for every single request by default
|
|
||||||
"login_required.middleware.LoginRequiredMiddleware",
|
|
||||||
# provide framework for displaying messages to the user, see documentation
|
# provide framework for displaying messages to the user, see documentation
|
||||||
"django.contrib.messages.middleware.MessageMiddleware",
|
"django.contrib.messages.middleware.MessageMiddleware",
|
||||||
# provide clickjacking protection via the X-Frame-Options header
|
# provide clickjacking protection via the X-Frame-Options header
|
||||||
|
@ -462,12 +461,6 @@ AUTHENTICATION_BACKENDS = [
|
||||||
# the login_required() decorator, LoginRequiredMixin, or AccessMixin
|
# the login_required() decorator, LoginRequiredMixin, or AccessMixin
|
||||||
LOGIN_URL = "/openid/login"
|
LOGIN_URL = "/openid/login"
|
||||||
|
|
||||||
# We don't want the OIDC app to be login-required because then it can't handle
|
|
||||||
# the initial login requests without erroring.
|
|
||||||
LOGIN_REQUIRED_IGNORE_PATHS = [
|
|
||||||
r"/openid/(.+)$",
|
|
||||||
]
|
|
||||||
|
|
||||||
# where to go after logging out
|
# where to go after logging out
|
||||||
LOGOUT_REDIRECT_URL = "home"
|
LOGOUT_REDIRECT_URL = "home"
|
||||||
|
|
||||||
|
@ -516,7 +509,7 @@ STATIC_URL = "public/"
|
||||||
|
|
||||||
# Base URL of our separate static public website. Used by the
|
# Base URL of our separate static public website. Used by the
|
||||||
# {% public_site_url subdir/path %} template tag
|
# {% public_site_url subdir/path %} template tag
|
||||||
GETGOV_PUBLIC_SITE_URL = env_getgov_public_site_url
|
GETGOV_PUBLIC_SITE_URL = secret_getgov_public_site_url
|
||||||
|
|
||||||
# endregion
|
# endregion
|
||||||
# region: Registry----------------------------------------------------------###
|
# region: Registry----------------------------------------------------------###
|
||||||
|
@ -564,6 +557,7 @@ SECURE_SSL_REDIRECT = True
|
||||||
# web server configurations.
|
# web server configurations.
|
||||||
ALLOWED_HOSTS = [
|
ALLOWED_HOSTS = [
|
||||||
"getgov-stable.app.cloud.gov",
|
"getgov-stable.app.cloud.gov",
|
||||||
|
"getgov-ko.app.cloud.gov",
|
||||||
"getgov-ab.app.cloud.gov",
|
"getgov-ab.app.cloud.gov",
|
||||||
"getgov-bl.app.cloud.gov",
|
"getgov-bl.app.cloud.gov",
|
||||||
"getgov-rjm.app.cloud.gov",
|
"getgov-rjm.app.cloud.gov",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue