Skip to content

Commit

Permalink
Update secret (#53)
Browse files Browse the repository at this point in the history
* Update app.py

* Update app.js

* Update index.js

* Update pyproject.toml

* Update anythink-backend-deployment.yaml

* Update anythink-backend-deployment.yaml

* Update test.py

* Update app.js

* Update index.js

* Update app.py
  • Loading branch information
shem8 authored Oct 8, 2024
1 parent 60f4c5b commit 3a9d48f
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ spec:
- name: APP_ENV
value: dev
- name: SECRET_KEY
value: secret
value: e6F9KvSDf4dyXj
- name: DEBUG
value: "True"
- name: DATABASE_URL
Expand Down
2 changes: 1 addition & 1 deletion .framework/node/backend/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ app.use(express.static(__dirname + "/public"));

app.use(
session({
secret: "secret",
secret: "e6F9KvSDf4dyXj",
cookie: { maxAge: 60000 },
resave: false,
saveUninitialized: false
Expand Down
2 changes: 1 addition & 1 deletion .framework/node/backend/config/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
secret: process.env.NODE_ENV === 'production' ? process.env.SECRET : 'secret'
secret: process.env.NODE_ENV === 'production' ? process.env.SECRET : 'e6F9KvSDf4dyXj'
};
2 changes: 1 addition & 1 deletion .framework/python/backend/app/core/settings/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class AppSettings(BaseAppSettings):
max_connection_count: int = 5
min_connection_count: int = 5

secret_key: SecretStr = SecretStr("secret")
secret_key: SecretStr = SecretStr("e6F9KvSDf4dyXj")

api_prefix: str = "/api"

Expand Down
2 changes: 1 addition & 1 deletion .framework/python/backend/app/core/settings/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class TestAppSettings(AppSettings):

title: str = "Test FastAPI example application"

secret_key: SecretStr = SecretStr("test_secret")
secret_key: SecretStr = SecretStr("e6F9KvSDf4dyXj")

database_url: PostgresDsn
max_connection_count: int = 5
Expand Down
2 changes: 1 addition & 1 deletion .framework/python/backend/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ addopts = '''
--asyncio-mode=auto
'''
env = [
"SECRET_KEY=secret",
"SECRET_KEY=e6F9KvSDf4dyXj",
"MAX_CONNECTIONS_COUNT=1",
"MIN_CONNECTIONS_COUNT=1"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ spec:
- name: APP_ENV
value: dev
- name: SECRET_KEY
value: secret
value: e6F9KvSDf4dyXj
- name: DEBUG
value: "True"
- name: DATABASE_URL
Expand Down

0 comments on commit 3a9d48f

Please sign in to comment.