1
0
mirror of https://shylinux.com/x/ContextOS synced 2025-04-25 16:58:06 +08:00
ContextOS/etc/conf/location.conf
2023-02-17 22:14:41 +08:00

20 lines
385 B
Plaintext

location / {
include header.conf;
if ($http_user_agent ~* "^Mozilla") {
return 302 https://$server_name/$request_uri;
}
proxy_pass http://contexts;
}
location /space/ {
include header.conf;
proxy_pass http://contexts;
proxy_set_header Connection "upgrade";
proxy_set_header Upgrade $http_upgrade;
}
location /x/ {
include header.conf;
proxy_pass http://contexts_repos;
}