first commit

This commit is contained in:
Reinoud Bruyndonckx 2025-04-11 17:22:47 +02:00
commit 855f78f21a
4 changed files with 66 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
.env

9
README.md Normal file
View file

@ -0,0 +1,9 @@
# Documentatie
In dit document ga je de nodig info vinden over hoe `ksawestmalle.be` is opgezet en hoe deze beheerd moet worden.
Ik ga proberen te beginnen met niet technisch en hoe verder je in dit document leest te meer technisch het gaat worden.
# Standaard beheer & Layout
Dit gaat allemaal via de webinterface op `https://ksawestmalle.be/login`. Onze website draait op software genaamd [wordpress](https://wordpress.org/) dus als je iets specifiek zoekt kan je zo tutorials opzoeken. Daarnaast maken we gebruik van een speciale editor genaamt Element. Als je een pagina wilt aanpassen klik je dus best altijd op "Edit with Element".

25
docker-compose.yaml Normal file
View file

@ -0,0 +1,25 @@
services:
db:
image: mariadb:10.6.4-focal
restart: always
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
volumes:
- /data/db:/var/lib/mysql
wordpress:
image: wordpress:latest
ports:
- "8080:80"
restart: always
environment:
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_NAME: wordpress
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: ${WORDPRESS_DB_PASSWORD}
volumes:
- /data/wordpress:/var/www/html

31
ksa.reinoud.cloud.conf Normal file
View file

@ -0,0 +1,31 @@
# /etc/nginx/conf.d/ksa.reinoud.cloud.conf
server {
listen 80;
listen [::]:80;
server_name ksa.reinoud.cloud www.ksa.reinoud.cloud;
# Redirect all HTTP requests to HTTPS
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name ksa.reinoud.cloud www.ksa.reinoud.cloud;
ssl_certificate /etc/letsencrypt/live/ksa.reinoud.cloud/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/ksa.reinoud.cloud/privkey.pem;
# Optional: Use strong SSL settings
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers HIGH:!aNULL:!MD5;
location / {
proxy_pass http://localhost:8080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}