Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ RUN touch /var/run/nginx.pid && \

USER 101

EXPOSE 8080
EXPOSE 80
24 changes: 12 additions & 12 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,24 @@ services:
# image: nginx:1.31.3-alpine-slim
# container_name: dev-loutikdocs
# ports:
# - 8080:80
# - 80:80
# volumes:
# - ./dist:/usr/share/nginx/html
# - ./dist:/usr/share/nginx/html

# ==================================
# Dev view
# ==================================
# nginx:
# image: dev-loutikdocs:1.0.3
# container_name: dev-loutikdocs
# ports:
# - 8080:8080
nginx:
image: dev-loutikdocs:1.0.8
container_name: dev-loutikdocs
ports:
- 8080:80

# ===================================
# Prod view
# ===================================
nginx:
image: ghcr.io/loutik/website-docs:latest
container_name: prd-loutikdocs
ports:
- 8080:8080
# nginx:
# image: ghcr.io/loutik/website-docs:latest
# container_name: prd-loutikdocs
# ports:
# - 8080:8080
15 changes: 5 additions & 10 deletions nginx.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
server {
listen 8080;
listen [::]:8080;
listen 80;
listen [::]:80;
server_name _;

# Répertoire des fichiers html
Expand All @@ -10,18 +10,16 @@ server {
# Masque de la version de NGINX
server_tokens off;

# Empêche les redirections sur les pots
absolute_redirect off;

# Redirection favicon
location = /favicon.ico {
try_files /favicon.ico =404;
log_not_found off;
access_log off;
}

# Redirection index
if ($request_uri ~ "^/index(\.html)?$") {
return 301 /;
}

# Masque des extensions .html
location / {
try_files $uri $uri.html $uri/ =404;
Expand All @@ -33,7 +31,4 @@ server {
location = /404.html {
internal;
}

# Trailing Slash - Désactivé
#rewrite ^/(.*)/$ /$1 permanent;
}
9 changes: 8 additions & 1 deletion src/components/AccueilLoutik.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
// test
// AccueilLoutik
---

<div class="custom-layout">
Expand Down Expand Up @@ -32,6 +32,13 @@
</section>
</div>

<!-- CSS custom -->
<style is:global>
body {
overflow-x: hidden;
}
</style>

<style>
.custom-layout {
display: flex;
Expand Down
10 changes: 10 additions & 0 deletions src/components/Footer.astro
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
// Footer
import Default from '@astrojs/starlight/components/Footer.astro';
---

Expand Down Expand Up @@ -38,10 +39,19 @@ import Default from '@astrojs/starlight/components/Footer.astro';

<!-- CSS custom -->
<style is:global>

body {
overflow-x: hidden;
}

header.header {
z-index: 10000 !important;
}

nav.sidebar {
z-index: 10001 !important;
}

/* Élévation du contenu pour que le footer passe au-dessus de la sidebar latérale */
.main-pane {
position: relative !important;
Expand Down
2 changes: 1 addition & 1 deletion src/components/SiteTitle.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
// src/components/SiteTitle.astro
// SiteTitle
import type { Props } from '@astrojs/starlight/props';
---

Expand Down