From 14bbd453e20d919f7c4371e305c2fabaf4ed1b06 Mon Sep 17 00:00:00 2001 From: Jakob Meier Date: Sun, 28 May 2023 12:54:02 +0200 Subject: [PATCH] Added hosting instructions --- README.org | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/README.org b/README.org index eb1a7a4..709407e 100644 --- a/README.org +++ b/README.org @@ -18,3 +18,27 @@ Afterwards the build output can be found in the ~build/~ folder. To get a local server running, you can use ~serve build~ + +** Hosting +I found that the easiest way to host static files is using nginx +and a sftp server. +#+begin_src yaml +version: '3' + +services: + backend: + image: atmoz/sftp:alpine + volumes: + # [...] addition config + - ./files:/home/deploy/upload + ports: + - 29493:22 + # [...] addition config + frontend: + image: nginx:mainline-alpine + volumes: + - ./files:/usr/share/nginx/html/:ro + - ./nginx.conf:/etc/nginx/conf.d/default.conf:ro + ports: + - 9493:80 +#+end_src -- 2.38.5