Upgrade docker deployment

master
René Jochum 5 years ago
parent e142d955de
commit f0c71963c3
No known key found for this signature in database
GPG Key ID: 9E8B1C32F5F318A9

@ -7,8 +7,10 @@ WORKDIR /build
RUN hugo -b https://rene.jochums.at -v -t persona
# Copy to a nginx container
FROM nginx:1.17-alpine
COPY --from=0 /build/public/* /usr/share/nginx/html/
COPY docker/nginx/nginx.conf /etc/nginx/
COPY docker/nginx/default.conf /etc/nginx/conf.d/
COPY --from=0 /build/public /var/www/rene.jochums.at

@ -5,8 +5,9 @@ items:
kind: Ingress
metadata:
annotations:
certmanager.k8s.io/cluster-issuer: letsencrypt-stage
certmanager.k8s.io/cluster-issuer: letsencrypt-staging
kubernetes.io/tls-acme: "true"
nginx.ingress.kubernetes.io/ssl-redirect: "false"
generation: 2
name: website
namespace: rene-jochums-at

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

@ -0,0 +1,30 @@
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 on;
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