naurril / SUSTechPOINTS

3D Point Cloud Annotation Platform for Autonomous Driving
GNU General Public License v3.0
783 stars 206 forks source link

User authentication #190

Closed Jayden9912 closed 2 months ago

Jayden9912 commented 2 months ago

Hi.

Could you shed some light on how to use the authentication mechanism? I changed auth to yes in auth.conf but I encountered this error:

python3.8/site-packages/cheroot/ssl/builtin.py", line 219, in __init__
    self.context.load_cert_chain(certificate, private_key)
FileNotFoundError: [Errno 2] No such file or directory
Jayden9912 commented 2 months ago

Follow up question: I am using fusion branch, is it possible if I just use python3 main.py instead of launching main.py + npm run start. From my experiment, there is no difference in these 2 approaches.

naurril commented 2 months ago

Follow up question: I am using fusion branch, is it possible if I just use python3 main.py instead of launching main.py + npm run start. From my experiment, there is no difference in these 2 approaches.

npm run start is for front-end debugging.

naurril commented 2 months ago

Hi.

Could you shed some light on how to use the authentication mechanism? I changed auth to yes in auth.conf but I encountered this error:

python3.8/site-packages/cheroot/ssl/builtin.py", line 219, in __init__
    self.context.load_cert_chain(certificate, private_key)
FileNotFoundError: [Errno 2] No such file or directory

you need to create certification keys to enable https, but a better way is to use network proxy (e.g. nginx)

Jayden9912 commented 2 months ago

Follow up question: I am using fusion branch, is it possible if I just use python3 main.py instead of launching main.py + npm run start. From my experiment, there is no difference in these 2 approaches.

npm run start is for front-end debugging.

So actually I can just deploy nginx to direct the request to the cherrypy http server right?

naurril commented 2 months ago

yes

On Wed, Apr 10, 2024, 12:06 Guan Jie @.***> wrote:

Follow up question: I am using fusion branch, is it possible if I just use python3 main.py instead of launching main.py + npm run start. From my experiment, there is no difference in these 2 approaches.

npm run start is for front-end debugging.

So actually I can just deploy nginx to direct the request to the cherrypy http server right?

— Reply to this email directly, view it on GitHub https://github.com/naurril/SUSTechPOINTS/issues/190#issuecomment-2046502819, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZKCDWZLQFLPB4JO2WGFRTY4S3DZAVCNFSM6AAAAABF5XPS7GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBWGUYDEOBRHE . You are receiving this because you commented.Message ID: @.***>

Jayden9912 commented 2 months ago

Thanks.