Add blog
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Kasper Juul Hermansen 2022-05-23 08:47:38 +02:00
parent 63fbdeb01d
commit 306484b664
6 changed files with 40 additions and 13 deletions

View File

@ -1,2 +1,10 @@
{
auto_https off
debug
http_port: 80
}
blog.kasperhermansen.com {
root * /usr/share/caddy
file_server
}

View File

@ -1,10 +1,4 @@
FROM klakegg/hugo:0.93.2-onbuild as builder
COPY . /src
FROM caddy:2.1.1 as run
COPY --from=builder /target/ /usr/share/caddy/
COPY ./Caddyfile /etc/caddy/Caddyfile
FROM klakegg/hugo:0.93.2-onbuild AS hugo
FROM nginx
COPY --from=hugo /target /usr/share/nginx/html

19
conf/nginx.conf Normal file
View File

@ -0,0 +1,19 @@
http {
include mime.types;
sendfile on;
server {
listen 80;
listen [::]:80;
autoindex off;
server_name _;
server_tokens off;
root /usr/share/nginx/html;
gzip_static on;
}
}
events {}

View File

@ -1,5 +1,5 @@
languageCode: "en-us"
baseUrl: "blog.kasperhermansen.com"
baseUrl: "https://blog.kasperhermansen.com"
title: "Kjuulh"
theme: "anubis"
paginate: 10

7
docker-compose.dev.yaml Normal file
View File

@ -0,0 +1,7 @@
services:
kasperhermansen_blog:
build:
context: .
restart: always
ports:
- 15000:80

View File

@ -4,4 +4,3 @@ services:
restart: always
ports:
- 15000:80
- 15001:443