Pi 2 лет назад
Родитель
Сommit
69c87028da
6 измененных файлов с 26 добавлено и 0 удалено
  1. 1 0
      .dockerignore
  2. 1 0
      .gitignore
  3. 1 0
      Dockerfile
  4. 2 0
      docker-compose.yml
  5. 6 0
      index.html
  6. 15 0
      nginx.conf

+ 1 - 0
.dockerignore

@@ -0,0 +1 @@
+feed/

+ 1 - 0
.gitignore

@@ -0,0 +1 @@
+feed/

+ 1 - 0
Dockerfile

@@ -1,2 +1,3 @@
 FROM nginx:alpine
 COPY index.html /usr/share/nginx/html
+COPY nginx.conf /etc/nginx/nginx.conf

+ 2 - 0
docker-compose.yml

@@ -5,3 +5,5 @@ services:
     ports:
       - 9898:80
     restart: always
+    volumes:
+      - ./feed:/usr/share/nginx/html/feed

+ 6 - 0
index.html

@@ -89,6 +89,12 @@
 			<p>Manage local LAN and internet connection settings</p>
 		</div>
 	</li>
+	<li onclick="location.href='https://shandan.one/feed/news/rss.html';" style="color: orange;">
+		<div>
+			<h1>News Feed</h1>
+			<p>Notable events but not weather or sports</p>
+		</div>
+	</li>
 </ul>
 </body>
 </html>

+ 15 - 0
nginx.conf

@@ -0,0 +1,15 @@
+events {
+}
+http {
+  server {
+    root /usr/share/nginx/html;
+    location / {
+    }
+    location /feed/ {
+      autoindex on;
+    }
+    location /feed/news/ {
+      autoindex on;
+    }
+  }
+}