codeskyblue / codeskyblue/gohttpserver

對於多使用者的支援?

Open
#132 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.8k
Forks
583
PR merge metrics
No merged PRs in 30d

Description

我在不久的將來有個場景大概是這樣
有大約100 個 user , 分別有各自的目錄
這些目錄內的檔案,我會在每個月的固定時間,從伺服器上自動更新,也可以由管理者統一派發給不同的user
我目前的作法是用supervisord 起100個 gohttp , 指定不同的目錄以及帳號密碼
```
/usr/local/bin/gohttpserver -r /share1 --debug --upload --delete --auth-type http --auth-http user_aaa:password
/usr/local/bin/gohttpserver -r /share1 --debug --upload --delete --auth-type http --auth-http user_bbb:password
```
如果不考慮建立openid/oauth2-proxy 認證,那是不是有其他更好的方法可以來做這些事?
本來是有用其他雲端空間的方案,像是 nextcloud , pydio 等等,但是這些系統,想要由底層去更新使用者目錄中的檔案都比較複雜,gohttpserver 相對簡單很多..

另外想請教的是,在同一臺機器上執行 一個 gohttpserver 和 100 個 gohttpserver 所佔用的資源是不是就是簡單的 1:100 這樣下去計算? 還是golang 會有更好的共用資源的設計?

Contributor guide

No contributing guide indexed for this repository

Research direction

Review the gohttpserver executable and the shown --auth-type and --auth-http startup options first. Determine whether a documented single-process multi-user configuration can provide per-directory access and scheduled updates; done should be a clear supported approach or an explicitly documented limitation, including resource implications.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
authentication, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.