script-server icon indicating copy to clipboard operation
script-server copied to clipboard

403: Forbidden - admin

Open johnmcavoy opened this issue 3 years ago • 4 comments

Hi there, I have seen posts for this but I'm still getting this problem. I'm not using Docker but when I try and access http://xx.x.x.:5000/admin.html I still get 403:Forbidden. I don't have a conf.json in any of the folders. Is this something really obvious I'm missing?

Thanks

John

johnmcavoy avatar Mar 22 '22 09:03 johnmcavoy

Hi @johnmcavoy, by default, script server allows admin connections only from localhost (to localhost). If you want your user to be an admin, you have to configure it explictly. Please check the documentation: https://github.com/bugy/script-server/wiki/Authorization#admin-users

bugy avatar Mar 22 '22 10:03 bugy

Thanks for the response. Ive tried pasting in a variety of config snippets into /conf/conf.json and it just creates a load more failures when I try to launch the main launcher.py. Do you have a simple code snippet that I can paste into the file just to permit access to the server from any of my workstations? Thanks

John

johnmcavoy avatar Mar 22 '22 11:03 johnmcavoy

Hi @johnmcavoy , please try

{
  "access": {
	"admin_users": [ "*" ]
  }
}

In general, I would recommend reading documentation and applying configs carefully, rather than trying to copypaste existing examples. They are not "ready to work solutions", they are just examples of configuration structure.

bugy avatar Mar 22 '22 11:03 bugy

That's great thanks. I agree with you, however I'm intrigued about your project for something I'm working on and really want to fail fast (or not) if this will work for me. Thank you for your help.

Cheers

John

johnmcavoy avatar Mar 22 '22 11:03 johnmcavoy