I found this nginx config, seemingly missing from the wiki page, and ended up with this:
The goal is to use *.solid.tilde.team on 443 through nginx.
server {
include snippets/listen.conf;
server_name solid.tilde.team *.solid.tilde.team;
return 307 https://$server_name$request_uri;
}
server {
include snippets/listen-ssl.conf;
include snippets/ssl/solid.tilde.team;
server_name solid.tilde.team *.solid.tilde.team;
ssl_verify_client optional_no_ca;
location / {
proxy_http_version 1.1;
proxy_set_header Host $http_host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "";
proxy_set_header X-Nginx-Proxy true;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-SSL-CERT $ssl_client_cert;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass https://localhost:8443;
}
}
my config.json is as follows:
{
"root": "/solid/data",
"serverUri": "https://solid.tilde.team",
"port": "8443",
"webid": true,
"mount": "/",
"configPath": "./config",
"configFile": "./config.json",
"dbPath": "./.db",
"sslKey": "/etc/letsencrypt/live/solid.tilde.team/privkey.pem",
"sslCert": "/etc/letsencrypt/live/solid.tilde.team/fullchain.pem",
"multiuser": true,
"enforceToc": false,
"disablePasswordChecks": false,
"supportEmail": "sudoers@tilde.team",
"server": {
"name": "solid.tilde.team",
"description": "",
"logo": ""
}
}
I'm able to successfully register an account from the root at https://solid.tilde.team, but am unable to log in with my newly created account.
The js console in the login popup reports the following:
Error logging in with WebID-OIDC popup.html:24:123308
TypeError: "NetworkError when attempting to fetch resource." popup.html:24:123357
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://localhost:8443/jwks. (Reason: CORS request did not succeed).
At a first glance, it appears that something in the popup window is not respecting the serverUri value from config.json. It's also possible that something is getting dropped along the way in the nginx proxy.
If the nginx configs look correct, I'd like to add them to the wiki page as well.
Thanks!
I found this nginx config, seemingly missing from the wiki page, and ended up with this:
The goal is to use *.solid.tilde.team on 443 through nginx.
my config.json is as follows:
I'm able to successfully register an account from the root at https://solid.tilde.team, but am unable to log in with my newly created account.
The js console in the login popup reports the following:
At a first glance, it appears that something in the popup window is not respecting the serverUri value from config.json. It's also possible that something is getting dropped along the way in the nginx proxy.
If the nginx configs look correct, I'd like to add them to the wiki page as well.
Thanks!