This commit is contained in:
parent
63fbdeb01d
commit
306484b664
12
Caddyfile
12
Caddyfile
@ -1,2 +1,10 @@
|
||||
root * /usr/share/caddy
|
||||
file_server
|
||||
{
|
||||
auto_https off
|
||||
debug
|
||||
http_port: 80
|
||||
}
|
||||
|
||||
blog.kasperhermansen.com {
|
||||
root * /usr/share/caddy
|
||||
file_server
|
||||
}
|
||||
|
12
Dockerfile
12
Dockerfile
@ -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
19
conf/nginx.conf
Normal 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 {}
|
@ -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
7
docker-compose.dev.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
services:
|
||||
kasperhermansen_blog:
|
||||
build:
|
||||
context: .
|
||||
restart: always
|
||||
ports:
|
||||
- 15000:80
|
@ -4,4 +4,3 @@ services:
|
||||
restart: always
|
||||
ports:
|
||||
- 15000:80
|
||||
- 15001:443
|
||||
|
Loading…
Reference in New Issue
Block a user