Switch to caddy

Signed-off-by: René Jochum <rene@jochum.dev>
master v1.2.0
René Jochum 2 years ago
parent e8ba370d46
commit 991fdc788e

@ -8,11 +8,8 @@ WORKDIR /build
RUN hugo -b https://rene.jochum.dev -v -t persona
# Copy to a nginx container
FROM nginx:alpine
FROM caddy:2.5.2-alpine
LABEL maintainer="René Jochum <rene@jochum.dev>"
COPY docker/nginx/nginx.conf /etc/nginx/
COPY docker/nginx/default.conf /etc/nginx/conf.d/
COPY --from=0 /build/public /var/www/rene.jochum.dev
COPY --from=0 /build/public/ /usr/share/caddy/

@ -1,8 +0,0 @@
server {
listen 80 default_server;
error_log /dev/stderr;
access_log /dev/stdout;
root /var/www/rene.jochum.dev;
}

@ -1,30 +0,0 @@
user nginx;
worker_processes 4;
pid /run/nginx.pid;
events {
worker_connections 2048;
multi_accept on;
use epoll;
}
http {
server_tokens off;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 15;
types_hash_max_size 2048;
include /etc/nginx/mime.types;
default_type application/octet-stream;
access_log off;
error_log off;
gzip off;
gzip_disable "msie6";
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
open_file_cache max=100;
client_body_temp_path /tmp 1 2;
client_body_buffer_size 256k;
client_body_in_file_only off;
}
Loading…
Cancel
Save