diff --git a/backend/resources/views/api-test.blade.php b/backend/resources/views/api-test.blade.php new file mode 100644 index 0000000..2f6762c --- /dev/null +++ b/backend/resources/views/api-test.blade.php @@ -0,0 +1,134 @@ + + + + + + فحص الـ API - منصة صقل + + + + +

أداة فحص الواجهات البرمجية (API Tester)

+ +
+

تسجيل الدخول (Login)

+
+ + +
+
+ + +
+ + + +

النتيجة:

+
في انتظار التنفيذ...
+
+ +
+

تصفح الدورات (Courses) - يتطلب تسجيل دخول

+ + +

النتيجة:

+
في انتظار التنفيذ...
+
+ + + + diff --git a/backend/resources/views/landing.blade.php b/backend/resources/views/landing.blade.php new file mode 100644 index 0000000..998fe87 --- /dev/null +++ b/backend/resources/views/landing.blade.php @@ -0,0 +1,28 @@ + + + + + + منصة صقل - الرئيسية + + + +
+

منصة صقل

+

المنصة التعليمية الأولى لتطوير المهارات

+
+
+

مرحباً بك في منصة صقل

+

النظام الأساسي (Backend) يعمل بنجاح تام!

+ الانتقال لصفحة فحص الـ API +
+ + diff --git a/backend/routes/web.php b/backend/routes/web.php index 86a06c5..e6fb28c 100644 --- a/backend/routes/web.php +++ b/backend/routes/web.php @@ -3,5 +3,9 @@ use Illuminate\Support\Facades\Route; Route::get('/', function () { - return view('welcome'); + return view('landing'); +}); + +Route::get('/api-test', function () { + return view('api-test'); }); diff --git a/cloudpanel_vhost.conf b/cloudpanel_vhost.conf new file mode 100644 index 0000000..35ef01c --- /dev/null +++ b/cloudpanel_vhost.conf @@ -0,0 +1,61 @@ +server { + listen 80; + listen [::]:80; + listen 443 ssl http2; + listen [::]:443 ssl http2; + {{ssl_certificate_key}} + {{ssl_certificate}} + server_name saqel.intaleqapp.com; + {{root}} + + {{nginx_access_log}} + {{nginx_error_log}} + + if ($scheme != "https") { + rewrite ^ https://$host$uri permanent; + } + + location ~ /.well-known { + auth_basic off; + allow all; + } + + {{settings}} + + location / { + # Forward all traffic to the Docker Nginx container listening on port 8085 + proxy_pass http://127.0.0.1:8085; + proxy_set_header Host $http_host; + proxy_set_header X-Forwarded-Host $http_host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; + proxy_hide_header X-Varnish; + proxy_redirect off; + proxy_max_temp_file_size 0; + proxy_connect_timeout 720; + proxy_send_timeout 720; + proxy_read_timeout 720; + proxy_buffer_size 128k; + proxy_buffers 4 256k; + proxy_busy_buffers_size 256k; + proxy_temp_file_write_size 256k; + } + + location ~* ^.+\.(css|js|jpg|jpeg|gif|png|ico|gz|svg|svgz|ttf|otf|woff|woff2|eot|mp4|ogg|ogv|webm|webp|zip|swf|map|mjs)$ { + add_header Access-Control-Allow-Origin "*"; + expires max; + access_log off; + # Proxy static files to Docker as well so Nginx in Docker serves them + proxy_pass http://127.0.0.1:8085; + proxy_set_header Host $http_host; + } + + location ~ /\.(ht|svn|git) { + deny all; + } + + if (-f $request_filename) { + break; + } +}