Skip to content

Commit

Permalink
Add path for acme resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
SonOfLope committed Nov 7, 2024
1 parent 51179e4 commit f0706f8
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions wiki/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ http {

sendfile on;
#tcp_nopush on;

keepalive_timeout 65;

client_body_temp_path /tmp/client_temp;
Expand All @@ -36,9 +36,15 @@ http {
server {
listen 8080;
server_name _;

absolute_redirect off;

# Exclude .well-known/acme-challenge from redirection
location /.well-known/acme-challenge/ {
alias /usr/share/nginx/html/.well-known/acme-challenge/;
try_files $uri =404;
}

location / {
alias /usr/share/nginx/html/fr/;
try_files $uri $uri/ /fr/index.html;
Expand All @@ -50,7 +56,9 @@ http {
error_page 404 /en/404.html;
}

location ~ ^(.+)/$ { return 301 $scheme://$http_host$1; }
location ~ ^(.+)/$ {
return 301 $scheme://$http_host$1;
}

error_page 404 /404.html;
}
Expand Down

0 comments on commit f0706f8

Please sign in to comment.