commit c8bf01145942aebb5818d8a808e89cc4540c3c59 Author: Richard Toth Date: Fri Dec 19 11:24:46 2025 +0100 init commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c077218 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +web diff --git a/README.md b/README.md new file mode 100644 index 0000000..526386d --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +** Rebuild ** + +docker compose --profile build run --rm satis-build diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..8eb0a89 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,32 @@ +services: + satis-nginx: + image: nginx:alpine + container_name: satis-nginx + restart: unless-stopped + volumes: + - ./web:/usr/share/nginx/html:ro + - ./nginx/default.conf:/etc/nginx/conf.d/default.conf:ro + environment: + VIRTUAL_HOST: satis.trweb.hu + LETSENCRYPT_HOST: satis.trweb.hu + LETSENCRYPT_EMAIL: info@tothbt.com + networks: + - web + + satis-build: + image: composer/satis + container_name: satis-build + volumes: + - ./satis.json:/build/satis.json:ro + - ./web:/build/web + - ~/.ssh:/root/.ssh:ro + working_dir: /build + command: ["build", "satis.json", "web"] + networks: + - web + profiles: + - build + +networks: + web: + external: true diff --git a/nginx/default.conf b/nginx/default.conf new file mode 100644 index 0000000..d14db87 --- /dev/null +++ b/nginx/default.conf @@ -0,0 +1,15 @@ +server { + listen 80; + server_name _; + + root /usr/share/nginx/html; + index index.html; + + location / { + try_files $uri $uri/ =404; + } + + location ~* \.(json|zip|tgz)$ { + add_header Cache-Control "public, max-age=300"; + } +} diff --git a/satis.json b/satis.json new file mode 100644 index 0000000..2c5e500 --- /dev/null +++ b/satis.json @@ -0,0 +1,7 @@ +{ + "name": "tothbt/satis", + "homepage": "https://satis.trweb.hu", + "repositories": [], + "require-all": true, + "output-dir": "web" +}