fraction / oasis

Free, open-source, peer-to-peer social application that helps you follow friends and discover new ones on Secure Scuttlebutt (SSB).
http://oasis-demo.fraction.io
GNU Affero General Public License v3.0
287 stars 42 forks source link

Run oasis from http://$nodename/oasis -> 'Not found' (nging proxy option or CORS problem?) #442

Open zicmama opened 4 years ago

zicmama commented 4 years ago

What's the problem you want solved?

I am willing to run oasis from nginx subdirectory location

    location /oasis {
        proxy_pass http://127.0.0.1:3000;
        proxy_set_header Host            $host;
        proxy_set_header X-Forwarded-For $remote_addr; 
    }

Starting oasis

nodename=$(cat /etc/hostname)
oasis --allow-host $nodename

Opening http://$nodename/oasis returns 'Not Found' Browser console error compllains about CORS

Is there a solution you'd like to recommend?

Correct CORS rules or nginx redirect ?

christianbundy commented 4 years ago

Sorry, running Oasis in a subdirectory isn't something we support right now.