Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions workshop/nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
http {

proxy_cache_path /home/nakama/Documents levels=1:2 keys_zone=static:1m max_size=10g inactive=1m use_temp_path=off;

proxy_cache_key $request_method$host$request_uri?$arg_one;

upstream backend {

server localhost:9991 weight=2;
server localhost:9992 weight=1;
server localhost:9993 weight=2;
server localhost:9994 weight=2;
}

server {
listen 8991;

location /get {
proxy_pass http://backend/get;
}

location /create {
proxy_pass http://backend/create;
}
}
}