Compare commits
No commits in common. "c9960aea75c832313c5cf44223e02e2da9737bf8" and "0286e6e217b5ca602b708d02550f5e7af336d2c6" have entirely different histories.
c9960aea75
...
0286e6e217
|
|
@ -5,27 +5,15 @@
|
||||||
# }
|
# }
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name comp.soict.io;
|
return 301 https://$host$request_uri; # Redirect HTTP sang HTTPS
|
||||||
|
|
||||||
location /.well-known/acme-challenge/ {
|
|
||||||
root /var/www/certbot;
|
|
||||||
}
|
|
||||||
|
|
||||||
location / {
|
|
||||||
# root /usr/share/nginx/html;
|
|
||||||
# index index.html index.htm;
|
|
||||||
return 301 https://$host$request_uri;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
server{
|
server{
|
||||||
listen 443 ssl;
|
listen 443 ssl;
|
||||||
server_name comp.soict.io;
|
server_name comp.soict.io;
|
||||||
ssl_certificate /etc/letsencrypt/live/comp.soict.io/fullchain.pem;
|
ssl_certificate /etc/nginx/ssl/nginx-selfsigned.crt;
|
||||||
ssl_certificate_key /etc/letsencrypt/live/comp.soict.io/privkey.pem;
|
ssl_certificate_key /etc/nginx/ssl/nginx-selfsigned.key;
|
||||||
|
|
||||||
ssl_protocols TLSv1.2 TLSv1.3;
|
|
||||||
ssl_ciphers HIGH:!aNULL:!MD5;
|
|
||||||
|
|
||||||
set $backend_server 172.18.10.8:8080;
|
set $backend_server 172.18.10.8:8080;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user