aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorGabriel Arakaki Giovanini <mail@gabrielgio.me>2022-12-10 23:36:39 +0100
committerGabriel Arakaki Giovanini <mail@gabrielgio.me>2022-12-11 00:58:31 +0100
commit6734c4408ffb67841115ca17d14d879043a3343e (patch)
treec1cdb11e698a71911dea63e9f01e34042662396d /README.md
downloads4o-6734c4408ffb67841115ca17d14d879043a3343e.tar.gz
s4o-6734c4408ffb67841115ca17d14d879043a3343e.tar.bz2
s4o-6734c4408ffb67841115ca17d14d879043a3343e.zip
feat: Initial set up for static single sign on
This is a simple project to have a static site behind single sign on.
Diffstat (limited to 'README.md')
-rw-r--r--README.md41
1 files changed, 41 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..97ff495
--- /dev/null
+++ b/README.md
@@ -0,0 +1,41 @@
+# Static Single Sign On
+
+Http server for hosting static files behind single sign on:
+
+## Building
+
+```bash
+make
+```
+
+## Installing
+
+It will generate a binary into the `./bin` folder. To install run:
+
+```bash
+sudo make install
+```
+
+You can also chose another location:
+
+```bash
+PREFIX="$HOME/.local" make install
+```
+
+Or even using go cli:
+
+```bash
+go install git.sr.ht/~gabrielgio/s4o/cmd/s4o@latest
+```
+
+## Running
+
+To get all the param run `./s4o --help`, e.g.:
+
+```bash
+s4o \
+ --client-id="$CLIENT_ID" \
+ --client-secret="$CLIENT_SECRET" \
+ --issuer="$ISSUER" \
+ --callback="http://localhost:3000/callback"
+```