mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
add more testdata examples
This commit is contained in:
1 parent
26ded9d5df
commit
dd9dd49b02
8 files changed
+21
No files matched your search
@@ -0,0 +1,9 @@
|
||||
listen:
|
||||
port: 8080
|
||||
hosts:
|
||||
"*":
|
||||
paths:
|
||||
/:
|
||||
proxy.reverse.url: "http://localhost:8888"
|
||||
proxy.preserve-host: ON
|
||||
proxy.websocket: ON
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user