mirror of
https://github.com/aljazceru/addons.git
synced 2026-01-17 12:04:18 +01:00
* Initial support for almond * Fix execution * Fix package * fix style * Use package * Try origin * Fix build * Fix build * Support multiarch * Fix readme * Remove i386 * Fix pipeline * Update version * cleanup * Fix name * test-ingress * Improve nginx * cleanup config * add panel icon * Add support for ingress * Add API access * Fix script * Fix panel icon * fix quite mode * Update run.sh * Fix auth * Update almond version * Update version * Fix lint * do not modify hostname * Update version * Address comments * Fix nginx * cleanup * working * Update version * Fix API injection * cleanup nginx config * do not set an refresh token * Update almond/data/run.sh Co-Authored-By: Paulus Schoutsen <balloob@gmail.com> * Fix command * change timehandling * debug code * debug v2 * Fix value * Debug v3 * Cleanup * Fix token valid * Fix command * Add debug * Add unzip * Fix config settings
60 lines
1.3 KiB
Nginx Configuration File
60 lines
1.3 KiB
Nginx Configuration File
worker_processes 1;
|
|
pid /var/run/nginx.pid;
|
|
error_log /dev/stdout info;
|
|
daemon off;
|
|
|
|
events {
|
|
worker_connections 1024;
|
|
}
|
|
|
|
http {
|
|
include mime.types;
|
|
default_type application/octet-stream;
|
|
sendfile on;
|
|
keepalive_timeout 65;
|
|
proxy_read_timeout 1200;
|
|
gzip on;
|
|
gzip_disable "msie6";
|
|
|
|
upstream backend {
|
|
ip_hash;
|
|
server 127.0.0.1:3000;
|
|
}
|
|
|
|
map $http_upgrade $connection_upgrade {
|
|
default upgrade;
|
|
'' close;
|
|
}
|
|
|
|
# API & Ingress
|
|
server {
|
|
listen 3001 default_server;
|
|
listen 8099 default_server;
|
|
listen [::]:3001 default_server;
|
|
listen [::]:8099 default_server;
|
|
|
|
allow 172.30.32.1;
|
|
allow 172.30.32.2;
|
|
deny all;
|
|
|
|
server_name _;
|
|
access_log /dev/stdout combined;
|
|
|
|
client_max_body_size 4G;
|
|
keepalive_timeout 5;
|
|
|
|
root /dev/null;
|
|
|
|
location / {
|
|
proxy_redirect off;
|
|
proxy_pass http://backend;
|
|
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection $connection_upgrade;
|
|
proxy_set_header Host "127.0.0.1:3000";
|
|
proxy_set_header Origin "http://127.0.0.1:3000";
|
|
}
|
|
}
|
|
}
|