notea-de-me/server
Bel LaPointe 0548585a23 update readme, add dockerfile 2022-02-18 11:35:11 -07:00
..
public/ui i cant uncache chrome fuckit 2022-02-18 10:53:45 -07:00
testdata i cant uncache chrome fuckit 2022-02-18 10:53:45 -07:00
.dockerignore update readme, add dockerfile 2022-02-18 11:35:11 -07:00
Dockerfile update readme, add dockerfile 2022-02-18 11:35:11 -07:00
README.md update readme, add dockerfile 2022-02-18 11:35:11 -07:00
auth.go impl test fileauth 2022-02-18 08:05:50 -07:00
auth_test.go impl test fileauth 2022-02-18 08:05:50 -07:00
authenticate.go use last cookie matching 2022-02-18 11:02:00 -07:00
authenticate_test.go i cant uncache chrome fuckit 2022-02-18 10:53:45 -07:00
go.mod todo, gomod 2022-02-17 13:24:31 -07:00
go.sum todo, gomod 2022-02-17 13:24:31 -07:00
id.go redir to /ui/files for about page, fix root+ button 2022-02-17 12:42:35 -07:00
leaf.go put with readonly uses put value 2022-02-17 12:15:21 -07:00
main.go i cant uncache chrome fuckit 2022-02-18 10:53:45 -07:00
server.go i cant uncache chrome fuckit 2022-02-18 10:53:45 -07:00
server_test.go test server auth 2022-02-18 09:16:23 -07:00
tree.go move leaf to own file 2022-02-17 11:00:30 -07:00
tree_test.go server code unittests to Meta. from .Title and .Deleted 2022-02-17 10:37:52 -07:00

README.md

Using File Auth

  1. Build a linux binary with GOOS=linux CGO_ENABLED=0 go build -o ./exec-server -a -installsuffix cgo -ldflags "-s -w"
  2. Add your usernames, passwords, groups to releasedata/users.yaml
  3. {one time} Generate and store an encryption KEY in Vault+Lastpass
  4. Build a Docker image with docker build -t registry-app.eng.qops.net:5001/bel/work-notes:latest --build-arg KEY='{{INSERT YOUR KEY HERE}}' .
  5. Push with docker push registry-app.eng.qops.net:5001/bel/work-notes:latest
  6. Run like docker run -v /mnt/files:/main/public/files -v /mnt/media:/main/public/media -e KEY='{{INSERT YOUR KEY HERE}}' -p 3005:3005 --rm -it registry-app.eng.qops.net:5001/bel/work-notes:latest -auth ./users.yaml -p 3005

users.yaml Format

users:
  bel:
    password: bel
    groups:
    - g1
    - g2