added env files

This commit is contained in:
CHIEFSOFT\ameye
2025-01-22 14:39:44 -05:00
parent 5b52813ce2
commit 678275dfd6
3 changed files with 20 additions and 5 deletions
+5
View File
@@ -7,4 +7,9 @@ SQL_HOST=10.20.30.60
SQL_PORT=5432
DATABASE=postgres
APP_FOLDER=/usr/src/app
INITIAL_PRODUCT_URL=devprov.mermsemr.com
MAIL_SERVER=smtp.gmail.com
MAIL_PORT= 465
MAIL_USERNAME=message@chiefsoft.com
MAIL_PASSWORD=may12002!
JWT_SECRET=dce6bd64f7d7101de4fed7cfc185a12851611a79bd60bbfdcc5b414b85f1fdb75e0905691c2a77ce94a7351b261fab4e183e17731ed40089f68f7290a793119f285d8ec7902d248ce15e8b1d4996ebacf5e7bcb06a38ac7ce0736f17d5c2895a499661d27095ac20aa174f9af2fba9a849dd2e6fd0aad8aa7e1ecc030c11eb8dc8dcb71d32233de3530d04f85918b9582f8b02587a7350aa34232825d4831707c7c5775026f3fdd92c5df555e6ff8b785525922709830206bbd49c371fb6e16bcab01ffccaf904108bb9789c578bce6afbb33bc77960051e680b2428d1f026473e71ef0f9997b2a6dc496e1c40509a1d289e3ff8b384c2d49e1d7719f9f4aaa1
+5
View File
@@ -7,4 +7,9 @@ SQL_HOST=10.20.30.60
SQL_PORT=5432
DATABASE=postgres
APP_FOLDER=/usr/src/app
INITIAL_PRODUCT_URL=devprov.mermsemr.com
MAIL_SERVER=smtp.gmail.com
MAIL_PORT= 465
MAIL_USERNAME=message@chiefsoft.com
MAIL_PASSWORD=may12002!
JWT_SECRET=dce6bd64f7d7101de4fed7cfc185a12851611a79bd60bbfdcc5b414b85f1fdb75e0905691c2a77ce94a7351b261fab4e183e17731ed40089f68f7290a793119f285d8ec7902d248ce15e8b1d4996ebacf5e7bcb06a38ac7ce0736f17d5c2895a499661d27095ac20aa174f9af2fba9a849dd2e6fd0aad8aa7e1ecc030c11eb8dc8dcb71d32233de3530d04f85918b9582f8b02587a7350aa34232825d4831707c7c5775026f3fdd92c5df555e6ff8b785525922709830206bbd49c371fb6e16bcab01ffccaf904108bb9789c578bce6afbb33bc77960051e680b2428d1f026473e71ef0f9997b2a6dc496e1c40509a1d289e3ff8b384c2d49e1d7719f9f4aaa1
+10 -5
View File
@@ -41,11 +41,11 @@ panel_url = os.getenv("PANEL_URL")
mail = Mail(app) # instantiate the mail class
# configuration of mail
app.config['MAIL_SERVER']='smtp.gmail.com'
app.config['MAIL_PORT'] = 465
app.config['MAIL_SERVER']=os.getenv("MAIL_SERVER") # 'smtp.gmail.com'
app.config['MAIL_PORT'] = os.getenv("MAIL_PORT") # 465
#app.config['MAIL_PORT'] = 587
app.config['MAIL_USERNAME'] = 'message@chiefsoft.com'
app.config['MAIL_PASSWORD'] = 'may12002!'
app.config['MAIL_USERNAME'] = os.getenv("MAIL_USERNAME") # 'message@chiefsoft.com'
app.config['MAIL_PASSWORD'] = os.getenv("MAIL_PASSWORD") # 'may12002!'
app.config['MAIL_USE_TLS'] = False
app.config['MAIL_USE_SSL'] = True
mail = Mail(app)
@@ -97,6 +97,9 @@ class User(db.Model):
def __init__(self, email):
self.email = email
initial_product_url = os.getenv("INITIAL_PRODUCT_URL")
print(initial_product_url)
dataUrl = os.getenv("DATABASE_URL")
connection = psycopg2.connect(dataUrl)
#engine = SQLAlchemy.create_engine(dataUrl)
@@ -140,6 +143,8 @@ def hello_world():
@app.route("/test/calendar")
def test_calen():
print("aameye yesy poimt")
print(initial_product_url)
dList = []
sample_range = random.randint(20, 60)
for x in range(sample_range):
@@ -837,7 +842,7 @@ def subscription_start(current_user):
product_found = count = len( product )
if product_found == 0 :
return jsonify({'status': "INVALID",'message': 'Error - Invalid product'}), 403
#INITIAL_PRODUCT_URL
member_id = current_user['user']['member_id']
# internal_url = str(random.randint(10000, 99999)) + "." + product_id + ".mermsemr.com"
internal_url = str(random.randint(10000, 99999)) + ".devprov.mermsemr.com"