-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/gramcracker40/GreenWatch
- Loading branch information
Showing
14 changed files
with
95 additions
and
39 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 |
---|---|---|
@@ -1,9 +1,12 @@ | ||
FLASK_APP=app | ||
FLASK_DEBUG=1 | ||
DATABASE_URI=postgresql://adminadminSECURE!!!:C18BHHIT8EE32P0N06QIAV526@db:5432/greenwatch_production | ||
SQL_HOST=db | ||
FLASK_APP=app:app | ||
FLASK_DEBUG=0 | ||
PRODUCTION=1 | ||
DBHOST=postgresql://adminadminSECURE!!!:ThisIsProductionBaby!!@db:5432/greenwatch_production | ||
SQL_PORT=5432 | ||
SQL_HOST=db | ||
DATABASE=postgres | ||
POSTGRES_USER=adminadminSECURE!!! | ||
POSTGRES_PASSWORD=C18BHHIT8EE32P0N06QIAV526 | ||
POSTGRES_DB=greenwatch_production | ||
POSTGRES_PASSWORD=ThisIsProductionBaby!! | ||
POSTGRES_DB=greenwatch_production | ||
SECRET_KEY=317aed4a0352d37253f433dc475fa5e7e306de7ad657add546d34f4e7c8b046c | ||
SERVER_IP="127.0.0.1:1337" |
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 |
---|---|---|
|
@@ -127,3 +127,6 @@ dmypy.json | |
|
||
# Pyre type checker | ||
.pyre/ | ||
|
||
#SSH Key file for Azure VM | ||
greenwatch_key.pem |
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 |
---|---|---|
@@ -1,5 +0,0 @@ | ||
# Interacting with Web App | ||
|
||
## below url opens ssh session with container instance in cloud given appropriate credentials in azure. | ||
|
||
## https://<app-name>.scm.azurewebsites.net/webssh/host | ||
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 |
---|---|---|
|
@@ -59,4 +59,3 @@ RUN chown -R app:app $APP_HOME | |
|
||
# change to the app user -- root no longer accessible | ||
USER app | ||
|
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
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,39 @@ | ||
-----BEGIN RSA PRIVATE KEY----- | ||
MIIG4wIBAAKCAYEAyQxvcvLzx8xiqtoaKrC/bNeqPmujsCWM6s/28VCw03Y8zVNj | ||
STitK3FodoaBWwl0g7+xn/tei7+qfaukfekFSzs9sLdDVHiNvaKCsnoamnaQQ4rD | ||
sKWZ6V4YBXBmfX/mfK4haV2MXUrkA6CKNxtkMktcaEDMuJR4p5vpe2lBFLgkrzZ+ | ||
RYlVVr3GFINLjH6eKW4wPlRT0VVTm9wEUtzU0NDwwQPql69O8eUYY06XxrPpBLt2 | ||
1Aa+XJMzTn/B+b1H0+xUvJwctMKN2o8OkYZsjuvRB/SJDU2D/gX2SUPGci0D5B1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DqFziDUPvWkET+OUmb | ||
-----END RSA PRIVATE KEY----- |
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 |
---|---|---|
|
@@ -10,4 +10,4 @@ flask-cors | |
requests | ||
pyinstaller | ||
psycopg2-binary | ||
gunicorn | ||
gunicorn |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM nginx:1.23-alpine | ||
|
||
RUN rm /etc/nginx/conf.d/default.conf | ||
COPY nginx.conf /etc/nginx/conf.d | ||
COPY default.conf /etc/nginx/conf.d |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# +++++++++++ FLASK +++++++++++ | ||
# bind any WSGI server to this module instead of create_app() | ||
# create_app() is good with flask run cause it handles everything for you | ||
# when you switch to developments you must setup the WSGI server and bind | ||
# to this module. See --> docker-compose.prod.yml | ||
|
||
from app import app | ||
application = app() |