diff --git a/Dockerfile b/Dockerfile index eb8bd7e..146d4b4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,5 @@ FROM klakegg/hugo:ext-alpine-onbuild as hugo FROM nginx -COPY --from=hugo /target /usr/share/nginx/html \ No newline at end of file +COPY --from=hugo /target /usr/share/nginx/html +COPY default.conf /etc/nginx/conf.d/ \ No newline at end of file diff --git a/default.conf b/default.conf new file mode 100644 index 0000000..256504b --- /dev/null +++ b/default.conf @@ -0,0 +1,15 @@ +server { + listen 80; + + location / { + root /usr/share/nginx/html; + } +} + +server { + listen 8080; + + location /stub_status { + stub_status; + } +} diff --git a/hugo.toml b/hugo.toml index 3f5ea36..bdc567f 100644 --- a/hugo.toml +++ b/hugo.toml @@ -81,4 +81,4 @@ url = "https://git.rtj.dev" weight = 15 [outputs] -home = [ "HTML", "RSS", "JSON" ] \ No newline at end of file +home = [ "HTML", "RSS", "JSON" ]