Dashboard iptal ve Ollama
This commit is contained in:
parent
365b345d46
commit
4b95b20a90
3 changed files with 56 additions and 23 deletions
|
|
@ -130,38 +130,70 @@ server {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# dashboard.sozsoft.com
|
# ollama.sozsoft.com
|
||||||
server {
|
server {
|
||||||
listen 443 ssl http2;
|
listen 443 ssl http2;
|
||||||
server_name dashboard.sozsoft.com;
|
server_name ollama.sozsoft.com;
|
||||||
|
|
||||||
ssl_certificate /etc/letsencrypt/live/dashboard.sozsoft.com/fullchain.pem;
|
ssl_certificate /etc/letsencrypt/live/ollama.sozsoft.com/fullchain.pem;
|
||||||
ssl_trusted_certificate /etc/ssl/sozsoft.com/chain1.pem;
|
ssl_trusted_certificate /etc/ssl/sozsoft.com/chain1.pem;
|
||||||
ssl_certificate_key /etc/letsencrypt/live/dashboard.sozsoft.com/privkey.pem;
|
ssl_certificate_key /etc/letsencrypt/live/ollama.sozsoft.com/privkey.pem;
|
||||||
|
|
||||||
auth_basic "Restricted";
|
auth_basic "Restricted";
|
||||||
auth_basic_user_file /etc/nginx/.htpasswd;
|
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
|
client_max_body_size 512M;
|
||||||
|
|
||||||
proxy_headers_hash_max_size 2048;
|
|
||||||
proxy_headers_hash_bucket_size 128;
|
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://127.0.0.1:19999;
|
proxy_pass http://127.0.0.1:11434;
|
||||||
|
|
||||||
proxy_http_version 1.1;
|
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;
|
||||||
|
|
||||||
include /etc/nginx/proxy_params;
|
proxy_buffering off;
|
||||||
|
proxy_request_buffering off;
|
||||||
|
|
||||||
proxy_set_header X-Forwarded-Host $host;
|
proxy_read_timeout 3600;
|
||||||
proxy_set_header X-Forwarded-Server $host;
|
proxy_connect_timeout 3600;
|
||||||
|
proxy_send_timeout 3600;
|
||||||
proxy_read_timeout 300;
|
|
||||||
proxy_connect_timeout 300;
|
|
||||||
proxy_send_timeout 300;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# 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;
|
||||||
|
# }
|
||||||
|
# }
|
||||||
|
|
||||||
# sozsoft.com
|
# sozsoft.com
|
||||||
server {
|
server {
|
||||||
listen 443 ssl http2;
|
listen 443 ssl http2;
|
||||||
|
|
@ -190,12 +222,11 @@ server {
|
||||||
proxy_pass http://127.0.0.1:3002;
|
proxy_pass http://127.0.0.1:3002;
|
||||||
include /etc/nginx/proxy_params;
|
include /etc/nginx/proxy_params;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 443 ssl http2;
|
listen 443 ssl http2;
|
||||||
server_name ~^(?!(devops|chat|ai|api|cdn)\.).*\.sozsoft\.com$;
|
server_name ~^(?!(devops|chat|ai|api|cdn|dashboard|ollama)\.).*\.sozsoft\.com$;
|
||||||
ssl_certificate /etc/letsencrypt/live/demo.sozsoft.com/fullchain.pem; # managed by Certbot
|
ssl_certificate /etc/letsencrypt/live/demo.sozsoft.com/fullchain.pem; # managed by Certbot
|
||||||
ssl_trusted_certificate /etc/ssl/sozsoft.com/chain1.pem;
|
ssl_trusted_certificate /etc/ssl/sozsoft.com/chain1.pem;
|
||||||
ssl_certificate_key /etc/letsencrypt/live/demo.sozsoft.com/privkey.pem; # managed by Certbot
|
ssl_certificate_key /etc/letsencrypt/live/demo.sozsoft.com/privkey.pem; # managed by Certbot
|
||||||
|
|
@ -208,6 +239,4 @@ server {
|
||||||
proxy_pass http://127.0.0.1:3002;
|
proxy_pass http://127.0.0.1:3002;
|
||||||
include /etc/nginx/proxy_params;
|
include /etc/nginx/proxy_params;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,7 @@
|
||||||
cd ~/sozsoft-platform/configs/deployment
|
cd ~/sozsoft-platform/configs/deployment
|
||||||
|
|
||||||
docker compose -f docker-compose-devops.yml down
|
docker compose -f docker-compose-devops.yml down
|
||||||
docker compose -f docker-compose-devops.yml up -d
|
docker compose -f docker-compose-devops.yml up -d
|
||||||
|
|
||||||
|
docker exec -it ollama ollama pull qwen2.5:3b
|
||||||
|
docker exec -it ollama ollama pull qwen2.5-coder:1.5b
|
||||||
|
|
@ -20,7 +20,8 @@ SUBDOMAINS=(
|
||||||
"sozsoft.com"
|
"sozsoft.com"
|
||||||
"www.sozsoft.com"
|
"www.sozsoft.com"
|
||||||
"demo.sozsoft.com"
|
"demo.sozsoft.com"
|
||||||
"dashboard.sozsoft.com"
|
"ollama.sozsoft.com"
|
||||||
|
# "dashboard.sozsoft.com"
|
||||||
)
|
)
|
||||||
|
|
||||||
echo "Subdomain'ler için SSL sertifikaları alınıyor..."
|
echo "Subdomain'ler için SSL sertifikaları alınıyor..."
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue