50 lines
1003 B
Plaintext
50 lines
1003 B
Plaintext
# Agenten Plattform
|
|
#
|
|
# (c) 2024 Magnus Bender
|
|
# Institute of Humanities-Centered Artificial Intelligence (CHAI)
|
|
# Universitaet Hamburg
|
|
# https://www.chai.uni-hamburg.de/~bender
|
|
#
|
|
# source code released under the terms of GNU Public License Version 3
|
|
# https://www.gnu.org/licenses/gpl-3.0.txt
|
|
|
|
server {
|
|
|
|
listen 80 default_server;
|
|
|
|
server_name _;
|
|
|
|
root /ums-agenten/plattform/web/public/;
|
|
index index.html;
|
|
|
|
location = / {
|
|
server_name_in_redirect off;
|
|
port_in_redirect off;
|
|
absolute_redirect off;
|
|
|
|
return 303 /index;
|
|
}
|
|
|
|
location / {
|
|
try_files $uri $uri/ @dynamic;
|
|
}
|
|
|
|
location /share {
|
|
alias /ums-agenten/share;
|
|
autoindex on;
|
|
}
|
|
|
|
location @dynamic {
|
|
proxy_set_header Host $http_host;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
proxy_redirect off;
|
|
proxy_buffering off;
|
|
|
|
proxy_pass http://unix:/tmp/uvicorn.sock;
|
|
}
|
|
|
|
} |