script-server
script-server copied to clipboard
Docker image run doesn't show auth option
Hi @bugy thanks for the script. I have my conf.json file to run docker to serve on my ec2-instance IP address, however, whenever I run docker and open script-server on my ec2-instance, it only shows the index.html page and no authentication prompt even though I have configured Google OAuth. Is there something I am doing wrong here?
{ "port": 8904, "address": "12.345.456.789", "title": "my Script Server", "auth": { "type": "google_oauth", "client_id": "123456-someexampleid.apps.googleusercontent.com", "secret": "ABCDE123xyJzw" },
(PS: I have mentioned some arbitary values here, the address has my instance's IP)
Here is what I get when I do a docker run for my script server:

Update: Upon checking the docker logs, I noticed that I seem to be getting a status code 304 on GET /conf and GET /auth/info. I have cleared my browser's cache and cookies and tried opening my ec2-ip address on an incognito tab on chrome, I still get the same issues. Hopefully this information helps as well! Thank you
I have 2 assumptions:
- there is some error on server when configuring google oauth. You could check logs/server.log file
- may be you are using a different conf.json file. E.g. you mounted some different volume on script server. Or you updated the conf file without restarting the server