12 lines
292 B
Plaintext
12 lines
292 B
Plaintext
|
|
server {
|
||
|
|
# https://serverfault.com/questions/798734/use-variable-for-server-name-in-nginx#
|
||
|
|
# server_name $servername;
|
||
|
|
server_name "ai_api.localhost";
|
||
|
|
listen 8090;
|
||
|
|
client_max_body_size 10M;
|
||
|
|
|
||
|
|
location /api/v1/ai_api/ {
|
||
|
|
proxy_pass http://127.0.0.1:5000/;
|
||
|
|
}
|
||
|
|
}
|