Skip to content

Commit

Permalink
fix: encore une tentative avec ou sans slash de fin
Browse files Browse the repository at this point in the history
  • Loading branch information
ocruze committed Jul 17, 2024
1 parent ed3514b commit 4c1d7bc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ COPY . .

# --pathprefix=/docs/
RUN npm ci \
&& npx @11ty/eleventy --pathprefix=/documentation/ \
&& npx @11ty/eleventy --pathprefix=/documentation \
&& npx pagefind --site _site/ --output-subdir \"_pagefind\" \
&& rm -rf node_modules .git

Expand Down
7 changes: 1 addition & 6 deletions .docker/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ http {
server_name localhost;
resolver 127.0.0.11;
autoindex off;
port_in_redirect off;
absolute_redirect off;

server_name _;
server_tokens off;
Expand All @@ -34,10 +34,6 @@ http {

index index.html index.htm;

location = / {
return 301 /documentation/;
}

# Serve static files
location /documentation {
alias /usr/share/nginx/html;
Expand All @@ -51,6 +47,5 @@ http {
root /usr/share/nginx/html;
internal;
}

}
}
4 changes: 2 additions & 2 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ services:
args:
- HTTP_PROXY
- HTTPS_PROXY
ports:
- 8082:8082
# ports:
# - 8082:8082
environment:
- HTTP_PROXY=${HTTP_PROXY}
- HTTPS_PROXY=${HTTPS_PROXY}
Expand Down

0 comments on commit 4c1d7bc

Please sign in to comment.