فهرست منبع

updated minimal nginx config

Christian Lempa 1 سال پیش
والد
کامیت
fd80043041
3فایلهای تغییر یافته به همراه16 افزوده شده و 2 حذف شده
  1. 14 0
      docker-compose/nginx/config/nginx.conf
  2. 1 0
      docker-compose/nginx/data/index.html
  3. 1 2
      docker-compose/nginx/docker-compose.yaml

+ 14 - 0
docker-compose/nginx/config/nginx.conf

@@ -0,0 +1,14 @@
+events {
+  worker_connections  1024;
+}
+
+http {
+  server {
+    listen 80;
+    server_name  _;
+      location / {
+        root /usr/share/nginx/html;
+        index index.html;
+      }
+  }
+}

+ 1 - 0
docker-compose/nginx/data/index.html

@@ -0,0 +1 @@
+this is a test website...

+ 1 - 2
docker-compose/nginx/docker-compose.yaml

@@ -7,7 +7,6 @@ services:
       - 80:80
       - 443:443
     volumes:
-      - ./config/nginx.conf:/etc/nginx/nginx.conf
-      - ./certs:/etc/nginx/certs
+      - ./config:/etc/nginx
       - ./data:/usr/share/nginx/html
     restart: unless-stopped