make initial changes to fqdn and docker

This commit is contained in:
tylen
2026-05-05 12:00:12 +03:00
parent 4ecf62faff
commit ef5c451c8d
6 changed files with 10 additions and 16 deletions

View File

@@ -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:

View File

@@ -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