From 71b773c034a01dc103ccd22f397cc4cc4c515123 Mon Sep 17 00:00:00 2001 From: dominikhoebert <42839893+dominikhoebert@users.noreply.github.com> Date: Mon, 29 Jul 2024 20:44:34 +0200 Subject: [PATCH] added nginx --- README.md | 3 +-- nginx/compose.yml | 20 ++++++++++++++++++++ nginx/config/default.conf | 8 ++++++++ nginx/data/index.html | 1 + 4 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 nginx/compose.yml create mode 100644 nginx/config/default.conf create mode 100644 nginx/data/index.html diff --git a/README.md b/README.md index c712416..e2ae7f9 100644 --- a/README.md +++ b/README.md @@ -27,8 +27,6 @@ ## ToDo -- Authentik -- alpine - nginx - obsidian livesync - whoami @@ -76,6 +74,7 @@ - dawarich - olivetin - authentik +- alpine ## Tools diff --git a/nginx/compose.yml b/nginx/compose.yml new file mode 100644 index 0000000..1d6bb6c --- /dev/null +++ b/nginx/compose.yml @@ -0,0 +1,20 @@ +# https://hub.docker.com/_/nginx + +# Nginx (pronounced "engine-x") is an open source reverse proxy server for +# HTTP, HTTPS, SMTP, POP3, and IMAP protocols, as well as a load balancer, HTTP cache, and a web server (origin server). + +name: nginx +services: + nginx: + image: nginx + container_name: nginx + ports: + - 82:80 + # (optional) uncomment the line below to enable HTTPS + # - 443:443 + volumes: + - ./config/default.conf:/etc/nginx/conf.d/default.conf:ro + - ./data:/usr/share/nginx/html:ro + environment: + NGINX_HOST: localhost + NGINX_PORT: 80 \ No newline at end of file diff --git a/nginx/config/default.conf b/nginx/config/default.conf new file mode 100644 index 0000000..a2f1d40 --- /dev/null +++ b/nginx/config/default.conf @@ -0,0 +1,8 @@ +server { + listen 80; + server_name _; + location / { + root /usr/share/nginx/html; + index index.html; + } +} diff --git a/nginx/data/index.html b/nginx/data/index.html new file mode 100644 index 0000000..7a4b3a6 --- /dev/null +++ b/nginx/data/index.html @@ -0,0 +1 @@ +this is a test website...