Skip to content

Commit

Permalink
Move server
Browse files Browse the repository at this point in the history
  • Loading branch information
KoalaSat committed Oct 2, 2024
1 parent d08e3cf commit 64a7fae
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions nginx/conf/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,27 @@ server {
server_name foro.kiwi;
server_tokens off;

location /.well-known/acme-challenge {
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}

location / {
return 301 https://foro.kiwi$request_uri;
root /usr/share/nginx/html;
}
}

server {
listen 443 ssl;
listen [::]:443 ssl;
http2 on;
listen 443 default_server ssl http2;
listen [::]:443 ssl http2;

server_name foro.kiwi;

ssl_certificate /etc/nginx/ssl/live/foro.kiwi/fullchain.pem;
ssl_certificate_key /etc/nginx/ssl/live/foro.kiwi/privkey.pem;

location /.well-known/ {
root /var/www;
}

location / {
root /usr/share/nginx/html;
Expand Down Expand Up @@ -53,4 +56,4 @@ server {
return 204;
}
}
}
}

0 comments on commit 64a7fae

Please # to comment.