mirror of
https://github.com/simon987/recipes.simon987.net.git
synced 2025-04-10 14:16:47 +00:00
cleanup
This commit is contained in:
parent
5ba15cd9a6
commit
9dbe4db001
@ -1,3 +0,0 @@
|
|||||||
.git
|
|
||||||
Dockerfile
|
|
||||||
.dockerignore
|
|
11
Dockerfile
11
Dockerfile
@ -1,11 +0,0 @@
|
|||||||
FROM jojomi/hugo:0.85.0 as build
|
|
||||||
|
|
||||||
WORKDIR /site
|
|
||||||
COPY . .
|
|
||||||
|
|
||||||
RUN hugo --minify -b https://recipes.simon987.net
|
|
||||||
|
|
||||||
FROM nginx:1.20.1-alpine
|
|
||||||
|
|
||||||
COPY nginx.conf /etc/nginx/nginx.conf
|
|
||||||
COPY --from=build /site/public/ /www/
|
|
30
nginx.conf
30
nginx.conf
@ -1,30 +0,0 @@
|
|||||||
user nginx;
|
|
||||||
worker_processes auto;
|
|
||||||
|
|
||||||
error_log /dev/stderr warn;
|
|
||||||
|
|
||||||
events {
|
|
||||||
worker_connections 1024;
|
|
||||||
}
|
|
||||||
|
|
||||||
http {
|
|
||||||
include /etc/nginx/mime.types;
|
|
||||||
default_type application/octet-stream;
|
|
||||||
|
|
||||||
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
|
||||||
'$status $body_bytes_sent "$http_referer" '
|
|
||||||
'"$http_user_agent" "$http_x_forwarded_for"';
|
|
||||||
|
|
||||||
access_log /dev/stdout main;
|
|
||||||
|
|
||||||
sendfile on;
|
|
||||||
keepalive_timeout 5;
|
|
||||||
|
|
||||||
server {
|
|
||||||
listen 80 default_server;
|
|
||||||
|
|
||||||
location / {
|
|
||||||
root /www/;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user