# Context: https://chat.openai.com/share/9b3c0e79-15bc-4780-aa88-f0dd149bdaac

map $http_upgrade $connection_upgrade {
    default upgrade;
    '' close;
}

map $remote_addr $endpoint_addr {
    "~:"    [::1];
    default    127.0.0.1;
}