-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moves Posts to MongoDB and implements Micropub (#45)
* Moves Posts to MongoDB and implements Micropub * Set 3.12 * Adds env vars to GH Actions * Adds mongo as a GHA service * Improves tests
- Loading branch information
1 parent
547ddff
commit a282143
Showing
48 changed files
with
389 additions
and
1,132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ venv/ | |
.pytest_cache/ | ||
.mypy_cache/ | ||
include | ||
migrate_* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from dotenv import load_dotenv | ||
from pydantic_settings import BaseSettings | ||
import os | ||
|
||
load_dotenv() | ||
|
||
class Settings(BaseSettings): | ||
MONGODB_URI: str = os.environ["MONGODB_URI"] | ||
DATABASE_NAME: str = os.environ["DATABASE_NAME"] | ||
MICROPUB_SECRET: str = os.environ["MICROPUB_SECRET"] | ||
FQD: str = os.environ["FQD"] | ||
SENTRY_DSN: str | None = os.getenv("SENTRY_DSN") | ||
|
||
settings = Settings() |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.