bumper/example/docker-compose/nginx/nginx.conf
Robert Resch df36bdd29d
add new endpoints for app v2 (#116)
* add some new endpoints for app v2

* add oauth

* update EcoVacsHomeProducts
- new attribute model

* add some missing endpoints for app v2

* - use only one level subdomain urls on service list
- add status

* add new used subdomains (for europe)

* improve docker images creation as requirements are change less often

* reformat area list

* add revoke expired oauths

* add docker-compose example

* wait for mqtt start fixes #107

* make images even smaller by copying only required folders instead of all (.git,...)

* fix exception during logging

* return fail if we can't get clean logs

* improve docker docs. Thanks for the hit @Bustel

* fix body not json serializable

* add docker-compose example in separate folder
2021-06-05 09:06:18 -04:00

41 lines
No EOL
1 KiB
Nginx Configuration File

error_log stderr;
pid /var/run/nginx.pid;
events { }
stream {
resolver 127.0.0.11 ipv6=off; #docker dns server
map_hash_bucket_size 64;
map $ssl_preread_server_name $internalport {
# redirect all requests, which contain "mq" in the SNI -> MQTT
~^.*(mq).*\.eco(vacs|user)\.(net|com)$ 8883;
# the rest of eco(user|vacs) requests
~^.*eco(vacs|user)\.(net|com)$ 443;
# mapping default to MQTT as the bots are connecting directly to the ip without SNI
default 8883;
}
server {
listen 443;
ssl_preread on;
proxy_pass bumper:$internalport;
}
server {
listen 5223;
proxy_pass bumper:5223;
}
server {
listen 8007;
proxy_pass bumper:8007;
}
server {
listen 8883;
proxy_pass bumper:8883;
}
}