diff --git a/dockerfile b/dockerfile index 0a75880..fad75b9 100644 --- a/dockerfile +++ b/dockerfile @@ -5,7 +5,7 @@ FROM python:3.11-alpine WORKDIR /app # JSON dosyasını ve Python sunucusu betiğini kopyala -COPY config.json server.py ./ +COPY islamic.json server.py ./ # 80 portunu dışarı aç (Coolify varsayılanı) EXPOSE 80 diff --git a/config.json b/islamic.json similarity index 100% rename from config.json rename to islamic.json diff --git a/server.py b/server.py index aeef6b5..9196939 100644 --- a/server.py +++ b/server.py @@ -4,8 +4,8 @@ from http.server import BaseHTTPRequestHandler, HTTPServer class RequestHandler(BaseHTTPRequestHandler): def do_GET(self): - # Kök dizin (/) veya /config.json isteklerinde JSON dönüyoruz - if self.path in ['/', '/config.json', '/api']: + # Kök dizin (/) veya /islamic.json isteklerinde JSON dönüyoruz + if self.path in ['/', '/islamic.json', '/api']: self.send_response(200) self.send_header('Content-Type', 'application/json; charset=utf-8') # CORS ayarları (Uygulamalardan sorunsuz erişim için) @@ -15,7 +15,7 @@ class RequestHandler(BaseHTTPRequestHandler): self.end_headers() try: - with open('config.json', 'r', encoding='utf-8') as f: + with open('islamic.json', 'r', encoding='utf-8') as f: content = f.read() self.wfile.write(content.encode('utf-8')) except Exception as e: