worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
listen [::]:80;
server_name localhost;
location / {
if ($query_string ~ "username=(.*)&password=(.*)") {
set $username $1;
set $password $2;
}
proxy_set_body "{\"name\":\"$username\",\"password\":$password}";
proxy_pass http://localhost:8181/;
}
}
}
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
listen [::]:80;
server_name localhost;
location / {
if ($query_string ~ "username=(.*)&password=(.*)") {
set $username $1;
set $password $2;
}
proxy_set_body "{\"name\":\"$username\",\"password\":$password}";
proxy_pass http://localhost:8181/;
}
}
}










