From 943221ff5afa9aeee21ddc62428be4b0dae08674 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sedat=20=C3=96ZT=C3=9CRK?= <76204082+iamsedatozturk@users.noreply.github.com> Date: Mon, 11 Aug 2025 17:52:19 +0300 Subject: [PATCH] =?UTF-8?q?SubDomain=20ayarlar=C4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- configs/deployment/configs/nginx.conf | 7 +++---- ui/dev-dist/sw.js | 2 +- .../components/layouts/AuthLayout/Simple.tsx | 19 +++++++++++-------- ui/src/routes/dynamicRouter.tsx | 12 +++++++++--- ui/src/views/NotFound.tsx | 2 +- 5 files changed, 25 insertions(+), 17 deletions(-) diff --git a/configs/deployment/configs/nginx.conf b/configs/deployment/configs/nginx.conf index a3866c04..6cadf6d1 100644 --- a/configs/deployment/configs/nginx.conf +++ b/configs/deployment/configs/nginx.conf @@ -110,15 +110,14 @@ server { large_client_header_buffers 4 16k; location / { - proxy_pass http://127.0.0.1:3002; # ← PORT belirtildi + proxy_pass http://127.0.0.1:3002; include /etc/nginx/proxy_params; } } -# Geri kalan TÜM subdomain'ler buraya düşsün (api/cdn hariç) server { listen 443 ssl http2; - server_name ~^(?!api\.|cdn\.).+\.sozsoft\.com$; + server_name ~^(?!(devops|chat|ai|api|cdn)\.).*\.sozsoft\.com$; ssl_certificate /etc/ssl/sozsoft.com/cert1.pem; ssl_certificate_key /etc/ssl/sozsoft.com/privkey1.pem; @@ -128,7 +127,7 @@ server { large_client_header_buffers 4 16k; location / { - proxy_pass https://sozsoft.com/login; + proxy_pass http://127.0.0.1:3002; include /etc/nginx/proxy_params; } } \ No newline at end of file diff --git a/ui/dev-dist/sw.js b/ui/dev-dist/sw.js index 0bcdc756..4b15efd4 100644 --- a/ui/dev-dist/sw.js +++ b/ui/dev-dist/sw.js @@ -82,7 +82,7 @@ define(['./workbox-54d0af47'], (function (workbox) { 'use strict'; "revision": "3ca0b8505b4bec776b69afdba2768812" }, { "url": "index.html", - "revision": "0.1jmha53s5bo" + "revision": "0.fduoepfh2f" }], {}); workbox.cleanupOutdatedCaches(); workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), { diff --git a/ui/src/components/layouts/AuthLayout/Simple.tsx b/ui/src/components/layouts/AuthLayout/Simple.tsx index a0118724..e0d9288c 100644 --- a/ui/src/components/layouts/AuthLayout/Simple.tsx +++ b/ui/src/components/layouts/AuthLayout/Simple.tsx @@ -12,6 +12,7 @@ import appConfig from '@/configs/app.config' import dayjs from 'dayjs' import { components } from 'react-select' import { ROUTES_ENUM } from '@/routes/route.constant' +import { hasSubdomain } from '@/utils/subdomain' interface SimpleProps extends CommonProps { content?: ReactNode @@ -92,17 +93,19 @@ const Simple = ({ children, content, ...rest }: SimpleProps) => {
- - - + {!hasSubdomain() && ( + + + + )}