* add docker config with a nginx

* add a make script for easy startup
* extend the readme to subscribe, how you can run with docker
This commit is contained in:
sassar88
2022-12-06 11:00:11 +01:00
parent 952b1f642c
commit 0cb5382ac5
7 changed files with 149 additions and 0 deletions

37
app.conf Executable file
View File

@@ -0,0 +1,37 @@
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
gzip on;
server {
listen 4242 default_server;
server_name localhost;
root /usr/share/nginx/html;
index index.html index.htm;
location ~* \.(?:manifest|appcache|html?|xml|json)$ {
expires -1;
}
location ~* \.(?:css|js)$ {
try_files $uri =404;
expires 1y;
access_log off;
add_header Cache-Control "public";
}
# Any route containing a file extension (e.g. /devicesfile.js)
location ~ ^.+\..+$ {
try_files $uri =404;
}
# Any route that doesn't have a file extension (e.g. /devices)
location / {
try_files $uri $uri/ /index.html;
}
}
}