Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- worker_processes auto;
- worker_cpu_affinity auto;
- error_log /dev/stderr;
- # error_log /dev/stderr notice; # only during development
- env BOTS;
- events {
- worker_connections 1024;
- }
- http {
- client_body_buffer_size 1M;
- client_max_body_size 1M;
- access_log /dev/stdout;
- lua_ssl_trusted_certificate /etc/ssl/certs/ca-certificates.crt;
- lua_package_path ";;$prefix/lua/?.lua;";
- # lua_code_cache off; # only during development
- resolver 127.0.0.11 ipv6=off; # use docker local resolver and disable IPv6
- upstream ed {
- server groupbutler max_fails=3 fail_timeout=30s;
- server edlua max_fails=3 fail_timeout=30s;
- }
- upstream simi {
- server simi max_fails=3 fail_timeout=30s;
- }
- server {
- listen 80;
- charset utf-8;
- charset_types application/json;
- default_type application/json;
- access_by_lua_file lua/handler.lua;
- location /ed {
- proxy_pass http://ed/;
- }
- location /simi {
- proxy_pass http://simi/;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement