mirror of
https://github.com/KevinMidboe/seasoned.git
synced 2026-03-11 11:55:38 +00:00
remove nginx config - replaced by caddy
This commit is contained in:
@@ -1,9 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
set -eu
|
|
||||||
|
|
||||||
export SEASONED_API=${SEASONED_API:-http://localhost:31459}
|
|
||||||
export SEASONED_DOMAIN=${SEASONED_DOMAIN:-localhost}
|
|
||||||
|
|
||||||
envsubst '$SEASONED_API,$SEASONED_DOMAIN' < /etc/nginx/conf.d/default.conf.template > /etc/nginx/conf.d/default.conf
|
|
||||||
|
|
||||||
exec "$@"
|
|
||||||
30
nginx.conf
30
nginx.conf
@@ -1,30 +0,0 @@
|
|||||||
server {
|
|
||||||
listen 5000 default_server;
|
|
||||||
listen [::]:5000 default_server;
|
|
||||||
|
|
||||||
server_name _;
|
|
||||||
root /usr/share/nginx/html;
|
|
||||||
|
|
||||||
gzip on;
|
|
||||||
gzip_types application/javascript;
|
|
||||||
gzip_min_length 1000;
|
|
||||||
gzip_static on;
|
|
||||||
|
|
||||||
location /favicons {
|
|
||||||
autoindex on;
|
|
||||||
}
|
|
||||||
|
|
||||||
location /dist {
|
|
||||||
add_header Content-Type application/javascript;
|
|
||||||
try_files $uri =404;
|
|
||||||
}
|
|
||||||
|
|
||||||
location /api {
|
|
||||||
proxy_pass $SEASONED_API;
|
|
||||||
}
|
|
||||||
|
|
||||||
location / {
|
|
||||||
try_files $uri $uri/ /index.html;
|
|
||||||
index index.html;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user