2026-02-24 20:44:16 +00:00
|
|
|
|
# HTTP'den HTTPS'e yönlendirme
|
|
|
|
|
|
server {
|
|
|
|
|
|
listen 80 default_server;
|
|
|
|
|
|
listen [::]:80 default_server;
|
|
|
|
|
|
server_name _;
|
|
|
|
|
|
|
|
|
|
|
|
location / {
|
|
|
|
|
|
return 301 https://$host$request_uri;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# devops.sozsoft.com
|
|
|
|
|
|
server {
|
|
|
|
|
|
listen 443 ssl http2;
|
|
|
|
|
|
server_name devops.sozsoft.com;
|
|
|
|
|
|
ssl_certificate /etc/letsencrypt/live/devops.sozsoft.com/fullchain.pem; # managed by Certbot
|
|
|
|
|
|
ssl_trusted_certificate /etc/ssl/sozsoft.com/chain1.pem;
|
|
|
|
|
|
ssl_certificate_key /etc/letsencrypt/live/devops.sozsoft.com/privkey.pem; # managed by Certbot
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
location / {
|
|
|
|
|
|
proxy_pass http://127.0.0.1:3000;
|
|
|
|
|
|
include /etc/nginx/proxy_params;
|
|
|
|
|
|
proxy_set_header Connection $http_connection;
|
|
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
|
|
client_max_body_size 512M;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# chat.sozsoft.com
|
|
|
|
|
|
server {
|
|
|
|
|
|
listen 443 ssl http2;
|
|
|
|
|
|
server_name chat.sozsoft.com;
|
|
|
|
|
|
ssl_certificate /etc/letsencrypt/live/chat.sozsoft.com/fullchain.pem; # managed by Certbot
|
|
|
|
|
|
ssl_trusted_certificate /etc/ssl/sozsoft.com/chain1.pem;
|
|
|
|
|
|
ssl_certificate_key /etc/letsencrypt/live/chat.sozsoft.com/privkey.pem; # managed by Certbot
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
location / {
|
|
|
|
|
|
proxy_pass http://127.0.0.1:3001; # ← PORT bilgisi güncellendi
|
|
|
|
|
|
include /etc/nginx/proxy_params;
|
|
|
|
|
|
proxy_set_header Connection $http_connection;
|
|
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
|
|
client_max_body_size 512M;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# ai.sozsoft.com
|
|
|
|
|
|
server {
|
|
|
|
|
|
listen 443 ssl http2;
|
|
|
|
|
|
server_name ai.sozsoft.com;
|
|
|
|
|
|
ssl_certificate /etc/letsencrypt/live/ai.sozsoft.com/fullchain.pem; # managed by Certbot
|
|
|
|
|
|
ssl_trusted_certificate /etc/ssl/sozsoft.com/chain1.pem;
|
|
|
|
|
|
ssl_certificate_key /etc/letsencrypt/live/ai.sozsoft.com/privkey.pem; # managed by Certbot
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
location / {
|
|
|
|
|
|
proxy_pass http://127.0.0.1:5678;
|
|
|
|
|
|
include /etc/nginx/proxy_params;
|
|
|
|
|
|
proxy_set_header Connection $http_connection;
|
|
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
|
|
proxy_read_timeout 300;
|
|
|
|
|
|
proxy_connect_timeout 300;
|
|
|
|
|
|
proxy_send_timeout 300;
|
|
|
|
|
|
client_max_body_size 512M;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# api.sozsoft.com
|
|
|
|
|
|
server {
|
|
|
|
|
|
listen 443 ssl http2;
|
|
|
|
|
|
server_name api.sozsoft.com;
|
2026-06-12 17:31:41 +00:00
|
|
|
|
client_max_body_size 512M;
|
2026-02-24 20:44:16 +00:00
|
|
|
|
ssl_certificate /etc/letsencrypt/live/api.sozsoft.com/fullchain.pem; # managed by Certbot
|
|
|
|
|
|
ssl_trusted_certificate /etc/ssl/sozsoft.com/chain1.pem;
|
|
|
|
|
|
ssl_certificate_key /etc/letsencrypt/live/api.sozsoft.com/privkey.pem; # managed by Certbot
|
|
|
|
|
|
|
|
|
|
|
|
underscores_in_headers on;
|
|
|
|
|
|
ignore_invalid_headers off;
|
|
|
|
|
|
large_client_header_buffers 4 16k;
|
|
|
|
|
|
|
|
|
|
|
|
# SignalR için özel ayar
|
2026-05-08 05:34:29 +00:00
|
|
|
|
location /videoroomhub {
|
|
|
|
|
|
proxy_pass http://127.0.0.1:8080/videoroomhub;
|
2026-02-24 20:44:16 +00:00
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
|
|
proxy_set_header Host $host;
|
2026-06-12 17:31:41 +00:00
|
|
|
|
proxy_set_header __tenant $http___tenant;
|
|
|
|
|
|
proxy_read_timeout 3600;
|
|
|
|
|
|
proxy_send_timeout 3600;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
location /messengerhub {
|
|
|
|
|
|
proxy_pass http://127.0.0.1:8080/messengerhub;
|
|
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
|
|
proxy_set_header __tenant $http___tenant;
|
2026-02-24 20:44:16 +00:00
|
|
|
|
proxy_read_timeout 3600;
|
|
|
|
|
|
proxy_send_timeout 3600;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
location / {
|
|
|
|
|
|
proxy_pass http://127.0.0.1:8080/;
|
|
|
|
|
|
include /etc/nginx/proxy_params;
|
|
|
|
|
|
|
|
|
|
|
|
proxy_set_header __tenant $http___tenant; # ← ÖNEMLİ
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# cdn.sozsoft.com
|
|
|
|
|
|
server {
|
|
|
|
|
|
listen 443 ssl http2;
|
|
|
|
|
|
server_name cdn.sozsoft.com;
|
|
|
|
|
|
ssl_certificate /etc/letsencrypt/live/cdn.sozsoft.com/fullchain.pem; # managed by Certbot
|
|
|
|
|
|
ssl_trusted_certificate /etc/ssl/sozsoft.com/chain1.pem;
|
|
|
|
|
|
ssl_certificate_key /etc/letsencrypt/live/cdn.sozsoft.com/privkey.pem; # managed by Certbot
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
location / {
|
|
|
|
|
|
proxy_pass http://127.0.0.1:8081;
|
|
|
|
|
|
include /etc/nginx/proxy_params;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-23 20:11:39 +00:00
|
|
|
|
# ollama.sozsoft.com
|
2026-06-05 14:22:02 +00:00
|
|
|
|
server {
|
|
|
|
|
|
listen 443 ssl http2;
|
2026-06-23 20:11:39 +00:00
|
|
|
|
server_name ollama.sozsoft.com;
|
2026-06-05 14:22:02 +00:00
|
|
|
|
|
2026-06-23 20:11:39 +00:00
|
|
|
|
ssl_certificate /etc/letsencrypt/live/ollama.sozsoft.com/fullchain.pem;
|
2026-06-05 14:22:02 +00:00
|
|
|
|
ssl_trusted_certificate /etc/ssl/sozsoft.com/chain1.pem;
|
2026-06-23 20:11:39 +00:00
|
|
|
|
ssl_certificate_key /etc/letsencrypt/live/ollama.sozsoft.com/privkey.pem;
|
2026-06-05 14:22:02 +00:00
|
|
|
|
|
|
|
|
|
|
auth_basic "Restricted";
|
|
|
|
|
|
auth_basic_user_file /etc/nginx/.htpasswd;
|
2026-06-23 20:11:39 +00:00
|
|
|
|
|
|
|
|
|
|
client_max_body_size 512M;
|
2026-06-05 14:22:02 +00:00
|
|
|
|
|
|
|
|
|
|
location / {
|
2026-06-23 20:11:39 +00:00
|
|
|
|
proxy_pass http://127.0.0.1:11434;
|
2026-06-05 14:22:02 +00:00
|
|
|
|
|
2026-06-23 20:11:39 +00:00
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
|
|
proxy_set_header Host 127.0.0.1:11434;
|
|
|
|
|
|
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;
|
2026-06-05 14:22:02 +00:00
|
|
|
|
|
2026-06-23 20:11:39 +00:00
|
|
|
|
proxy_buffering off;
|
|
|
|
|
|
proxy_request_buffering off;
|
2026-06-05 14:22:02 +00:00
|
|
|
|
|
2026-06-23 20:11:39 +00:00
|
|
|
|
proxy_read_timeout 3600;
|
|
|
|
|
|
proxy_connect_timeout 3600;
|
|
|
|
|
|
proxy_send_timeout 3600;
|
2026-06-05 14:22:02 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-06-23 20:11:39 +00:00
|
|
|
|
# dashboard.sozsoft.com
|
|
|
|
|
|
# server {
|
|
|
|
|
|
# listen 443 ssl http2;
|
|
|
|
|
|
# server_name dashboard.sozsoft.com;
|
|
|
|
|
|
|
|
|
|
|
|
# ssl_certificate /etc/letsencrypt/live/dashboard.sozsoft.com/fullchain.pem;
|
|
|
|
|
|
# ssl_trusted_certificate /etc/ssl/sozsoft.com/chain1.pem;
|
|
|
|
|
|
# ssl_certificate_key /etc/letsencrypt/live/dashboard.sozsoft.com/privkey.pem;
|
|
|
|
|
|
|
|
|
|
|
|
# auth_basic "Restricted";
|
|
|
|
|
|
# auth_basic_user_file /etc/nginx/.htpasswd;
|
|
|
|
|
|
# #sudo htpasswd -c /etc/nginx/.htpasswd sedat.ozturk
|
|
|
|
|
|
# #yukarıdaki komut ile kullanıcı adı ve şifre oluşturabilirsiniz
|
|
|
|
|
|
|
|
|
|
|
|
# proxy_headers_hash_max_size 2048;
|
|
|
|
|
|
# proxy_headers_hash_bucket_size 128;
|
|
|
|
|
|
|
|
|
|
|
|
# location / {
|
|
|
|
|
|
# proxy_pass http://127.0.0.1:19999;
|
|
|
|
|
|
# proxy_http_version 1.1;
|
|
|
|
|
|
|
|
|
|
|
|
# include /etc/nginx/proxy_params;
|
|
|
|
|
|
|
|
|
|
|
|
# proxy_set_header X-Forwarded-Host $host;
|
|
|
|
|
|
# proxy_set_header X-Forwarded-Server $host;
|
|
|
|
|
|
|
|
|
|
|
|
# proxy_read_timeout 300;
|
|
|
|
|
|
# proxy_connect_timeout 300;
|
|
|
|
|
|
# proxy_send_timeout 300;
|
|
|
|
|
|
# }
|
|
|
|
|
|
# }
|
|
|
|
|
|
|
2026-02-24 20:44:16 +00:00
|
|
|
|
# sozsoft.com
|
|
|
|
|
|
server {
|
|
|
|
|
|
listen 443 ssl http2;
|
|
|
|
|
|
server_name sozsoft.com;
|
|
|
|
|
|
ssl_certificate /etc/letsencrypt/live/sozsoft.com-0001/fullchain.pem; # managed by Certbot
|
|
|
|
|
|
ssl_trusted_certificate /etc/ssl/sozsoft.com/chain1.pem;
|
|
|
|
|
|
ssl_certificate_key /etc/letsencrypt/live/sozsoft.com-0001/privkey.pem; # managed by Certbot
|
|
|
|
|
|
|
|
|
|
|
|
underscores_in_headers on;
|
|
|
|
|
|
ignore_invalid_headers off;
|
|
|
|
|
|
large_client_header_buffers 4 16k;
|
|
|
|
|
|
|
|
|
|
|
|
location = /index.html {
|
|
|
|
|
|
proxy_pass http://127.0.0.1:3002;
|
|
|
|
|
|
include /etc/nginx/proxy_params;
|
|
|
|
|
|
add_header Cache-Control "no-store, no-cache, must-revalidate";
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
location = /sw.js {
|
|
|
|
|
|
proxy_pass http://127.0.0.1:3002;
|
|
|
|
|
|
include /etc/nginx/proxy_params;
|
|
|
|
|
|
add_header Cache-Control "no-store, no-cache, must-revalidate";
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
location / {
|
|
|
|
|
|
proxy_pass http://127.0.0.1:3002;
|
|
|
|
|
|
include /etc/nginx/proxy_params;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
server {
|
|
|
|
|
|
listen 443 ssl http2;
|
2026-06-23 20:11:39 +00:00
|
|
|
|
server_name ~^(?!(devops|chat|ai|api|cdn|dashboard|ollama)\.).*\.sozsoft\.com$;
|
2026-02-24 20:44:16 +00:00
|
|
|
|
ssl_certificate /etc/letsencrypt/live/demo.sozsoft.com/fullchain.pem; # managed by Certbot
|
|
|
|
|
|
ssl_trusted_certificate /etc/ssl/sozsoft.com/chain1.pem;
|
|
|
|
|
|
ssl_certificate_key /etc/letsencrypt/live/demo.sozsoft.com/privkey.pem; # managed by Certbot
|
|
|
|
|
|
|
|
|
|
|
|
underscores_in_headers on;
|
|
|
|
|
|
ignore_invalid_headers off;
|
|
|
|
|
|
large_client_header_buffers 4 16k;
|
|
|
|
|
|
|
|
|
|
|
|
location / {
|
|
|
|
|
|
proxy_pass http://127.0.0.1:3002;
|
|
|
|
|
|
include /etc/nginx/proxy_params;
|
|
|
|
|
|
}
|
2026-06-12 17:31:41 +00:00
|
|
|
|
}
|