feat: update model

This commit is contained in:
liuyx 2024-02-04 21:10:09 +08:00
parent 252aad9d31
commit 6222422a75
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
upstream {stream_name} { upstream {name} {
server localhost:{port} weight=1; server localhost:{port} weight=1;
} }
@ -22,7 +22,7 @@ server {
proxy_set_header Host $http_host; proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_redirect off; proxy_redirect off;
proxy_pass http://{stream_name}; proxy_pass http://{name};
} }
location = /favicon.ico { location = /favicon.ico {

View File

@ -7,8 +7,8 @@ server {
# return 301 https://$server_name$request_uri; # return 301 https://$server_name$request_uri;
# } # }
access_log ./conf.d/{server}/access.log; access_log ./conf.d/{name}/access.log;
error_log ./conf.d/{server}/error.log; error_log ./conf.d/{name}/error.log;
charset utf-8; charset utf-8;
server_name {server_name}; server_name {server_name};