add more testdata examples

This commit is contained in:
undefined committed 2021-05-20 22:59:50 +08:00
1 parent 26ded9d5df
commit dd9dd49b02
8 files changed
+21

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
listen:
port: 8080
hosts:
"*":
paths:
/:
proxy.reverse.url: "http://localhost:8888"
proxy.preserve-host: ON
proxy.websocket: ON
+18
View File
@@ -0,0 +1,18 @@
server {
listen 8080;
server_name localhost;
root /tmp/hydro/public;
location / {
try_files $uri @proxy_to_app;
}
location @proxy_to_app {
proxy_pass http://localhost:8888;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header X-Real-Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
}
}