-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merge: pull 'main' updates into PR branch #635
- Loading branch information
Showing
43 changed files
with
3,484 additions
and
294 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
STRIPE_SECRET_KEY=sk_test_changeme | ||
STRIPE_WEBHOOK_SECRET=whsec_changeme |
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 |
---|---|---|
|
@@ -11,3 +11,4 @@ hushline/static/data/users_directory.json | |
/node_modules | ||
.coverage | ||
htmlcov | ||
.env.stripe |
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 |
---|---|---|
|
@@ -4,3 +4,4 @@ coverage | |
hushline/static/vendor/* | ||
hushline/templates/* | ||
.pytest_cache | ||
.venv |
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 |
---|---|---|
|
@@ -29,4 +29,4 @@ EXPOSE 8080 | |
|
||
# Run! | ||
ENV FLASK_APP="hushline" | ||
CMD ["./start.sh"] | ||
CMD ["./scripts/prod_start.sh"] |
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 |
---|---|---|
|
@@ -5,3 +5,9 @@ export SQLALCHEMY_DATABASE_URI=postgresql://hushline:[email protected]:5432/hus | |
export REGISTRATION_CODES_REQUIRED=False | ||
export SESSION_COOKIE_NAME=session | ||
export [email protected] | ||
|
||
# Stripe | ||
export STRIPE_PUBLISHABLE_KEY=pk_test_51OhDeALcBPqjxU07I70UA6JYGDPUmkxEwZW0lvGyNXGlJ4QPfWIBFZJau7XOb3QDzDWrVutBVkz9SNrSjq2vRawm00TwfyFuma | ||
# set these manually: | ||
# export STRIPE_SECRET_KEY= | ||
# export STRIPE_WEBHOOK_SECRET= |
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,49 @@ | ||
--- | ||
services: | ||
app: &app_env | ||
build: | ||
context: . | ||
dockerfile: Dockerfile.dev | ||
ports: | ||
- 127.0.0.1:8080:8080 | ||
environment: | ||
FLASK_APP: hushline | ||
FLASK_ENV: development | ||
ENCRYPTION_KEY: bi5FDwhZGKfc4urLJ_ChGtIAaOPgxd3RDOhnvct10mw= | ||
SECRET_KEY: cb3f4afde364bfb3956b97ca22ef4d2b593d9d980a4330686267cabcd2c0befd | ||
SQLALCHEMY_DATABASE_URI: postgresql://hushline:hushline@postgres:5432/hushline | ||
REGISTRATION_CODES_REQUIRED: False | ||
SESSION_COOKIE_NAME: session | ||
NOTIFICATIONS_ADDRESS: [email protected] | ||
env_file: | ||
- .env.stripe | ||
volumes: | ||
- ./:/app | ||
depends_on: | ||
- dev_data | ||
restart: always | ||
|
||
worker: | ||
<<: *app_env | ||
ports: [] | ||
restart: always | ||
command: poetry run flask stripe start-worker | ||
depends_on: | ||
- app | ||
|
||
dev_data: | ||
<<: *app_env | ||
ports: [] | ||
restart: on-failure | ||
command: make dev-data | ||
depends_on: | ||
- postgres | ||
|
||
postgres: | ||
image: postgres:16.4-alpine3.20 | ||
environment: | ||
POSTGRES_USER: hushline | ||
POSTGRES_PASSWORD: hushline | ||
POSTGRES_DB: hushline | ||
ports: | ||
- 127.0.0.1:5432:5432 |
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
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
Oops, something went wrong.