make initial changes to fqdn and docker
This commit is contained in:
@@ -61,7 +61,7 @@ class DBClient:
|
||||
self.pool = self.create_pool() # Create a connection pool
|
||||
|
||||
self.initialize_database()
|
||||
self.initialize_secret_santa() # Initialize Secret Santa
|
||||
#self.initialize_secret_santa() # Initialize Secret Santa
|
||||
|
||||
def validate_env_variables(self):
|
||||
if not self.db_server or not self.db_port or not self.password or not self.database:
|
||||
|
||||
@@ -18,7 +18,7 @@ app = Flask(__name__)
|
||||
app.config['JSON_AS_ASCII'] = False # Ensures non-ASCII characters are preserved
|
||||
logging.basicConfig(level=logging.INFO)
|
||||
allowed_origins = [
|
||||
"https://nyipyatki.davydovcloud.com",
|
||||
"https://juhannus.davylis.com",
|
||||
"http://192.168.100.*",
|
||||
]
|
||||
CORS(app, resources={r"*": {"origins": allowed_origins}}) # Only allow example.com
|
||||
|
||||
Reference in New Issue
Block a user