From 075036133f2f2c555f21bd8a139cc515edf63b4a Mon Sep 17 00:00:00 2001 From: mike Date: Wed, 17 Dec 2025 14:47:40 +0100 Subject: [PATCH] init --- .gitignore | 2 + .idea/.gitignore | 10 + 404.html | 62 ++++ Dockerfile | 3 + docker-compose.yml | 25 ++ index.html | 785 +++++++++++++++++++++++++++++++++++++++++++++ nginx.conf | 27 ++ 7 files changed, 914 insertions(+) create mode 100644 .gitignore create mode 100644 .idea/.gitignore create mode 100644 404.html create mode 100644 Dockerfile create mode 100644 docker-compose.yml create mode 100644 index.html create mode 100644 nginx.conf diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3bf780b --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.idea +.env \ No newline at end of file diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..ab1f416 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,10 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Ignored default folder with query files +/queries/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml +# Editor-based HTTP Client requests +/httpRequests/ diff --git a/404.html b/404.html new file mode 100644 index 0000000..260cc4c --- /dev/null +++ b/404.html @@ -0,0 +1,62 @@ + + + + + + Page Not Found + + + + + +

Page Not Found

+

Sorry, but the page you were trying to view does not exist.

+ + + + diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d21def6 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,3 @@ +FROM nginx:alpine +COPY index.html /usr/share/nginx/html/ +COPY nginx.conf /etc/nginx/conf.d/default.conf diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..8c1dca9 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,25 @@ +services: + jarvis-lan: + build: + context: ${JARVIS_ROOT_DIR:-/opt/apps/jarvis-lan} + dockerfile: Dockerfile + container_name: jarvis-lan + restart: unless-stopped + networks: [ traefik_net ] + volumes: + - /opt/apps/jarvis-lan:/usr/share/nginx/html:ro + labels: + - "traefik.enable=true" + - "traefik.http.routers.jarvis-lan.rule=Host(`jarvis-lan.appmodel.nl`)" + - "traefik.http.routers.jarvis-lan.entrypoints=websecure" + - "traefik.http.routers.jarvis-lan.tls=true" + - "traefik.http.routers.jarvis-lan.tls.certresolver=letsencrypt" + - "traefik.http.services.jarvis-lan.loadbalancer.server.port=80" + - "traefik.http.routers.jarvis-lan-http.rule=Host(`jarvis-lan.appmodel.nl`)" + - "traefik.http.routers.jarvis-lan-http.entrypoints=web" + - "traefik.http.routers.jarvis-lan-http.middlewares=redirect-to-https@file" + +networks: + traefik_net: + external: true + name: traefik_net diff --git a/index.html b/index.html new file mode 100644 index 0000000..7b12289 --- /dev/null +++ b/index.html @@ -0,0 +1,785 @@ + + + + + + LM Studio Chat with Streaming + + + + + + + + + + +
+ + +
+ +
+
+ +
+
+ + +
+
Model: unknown
+
+
+ +
+
+ + + + \ No newline at end of file diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..21d1ab6 --- /dev/null +++ b/nginx.conf @@ -0,0 +1,27 @@ +server { + listen 80; + server_name localhost; + root /usr/share/nginx/html; + index index.html; + + # Enable clean URLs without .html extension + location / { + # Try the exact URI, then with .html, then as directory with index.html, then 404 + try_files $uri $uri.html $uri/ =404; + } + + # Don't redirect mobile.html to allow device-specific routing + # Skip the .html redirect for mobile.html and index.html + location = /mobile.html { + try_files /mobile.html =404; + } + + location = /index.html { + try_files /index.html =404; + } + + # Gzip compression for better performance + gzip on; + gzip_vary on; + gzip_types text/plain text/css text/xml text/javascript application/javascript application/xml+rss application/json; +}