update nginx config for https compability

This commit is contained in:
bachhungcb 2026-04-03 10:58:17 +07:00
parent e11a4a8f36
commit 95766806f9

View File

@ -5,6 +5,16 @@
# }
server {
listen 80;
return 301 https://$host$request_uri; # Redirect HTTP sang HTTPS
}
server{
listen 443 ssl;
server_name comp.soict.io;
ssl_certificate /etc/nginx/ssl/nginx-selfsigned.crt;
ssl_certificate_key /etc/nginx/ssl/nginx-selfsigned.key;
set $backend_server 172.18.10.8:8080;
root /usr/share/nginx/html;