Coder Social home page Coder Social logo

SHIORI_HTTP_SECRET_KEY about shiori HOT 5 OPEN

LLKoder avatar LLKoder commented on June 1, 2024
SHIORI_HTTP_SECRET_KEY

from shiori.

Comments (5)

fmartingr avatar fmartingr commented on June 1, 2024 1

Shiori generates one random every run, but for security purposes it must me set by the user. It is used to sign the sessions for the users (the authentication used to interact with the API).

How are you deploying shiori? docker compose/docker run? It something like this:

# Generate random string
$ openssl rand -hex 32
4c9598950d692a846977b5bc1dd31f3fed1afe1b3252cb8019e7aa914e2a1297

#  Run shiori
$ docker run --env SHIORI_HTTP_SECRET_KEY=4c9598950d692a846977b5bc1dd31f3fed1afe1b3252cb8019e7aa914e2a1297 ghcr.io/go-shiori/shiori:dev

from shiori.

fmartingr avatar fmartingr commented on June 1, 2024

Hey @LLKoder, you need to set the SHIORI_HTTP_SECRET_KEY environment variable to something random to use as key for the session tokens. You can generate a pesudo-random string using openssl/pwgen or any number of tools online.

from shiori.

LLKoder avatar LLKoder commented on June 1, 2024

Hi, @fmartingr, do shiori need this key as unique every time when I start/restart service/system? Can you give a example please? I use shiori with docker.

Just I don't understand why this EVAR need users. If it don't use users why can shiori not generate it automatically?

from shiori.

LLKoder avatar LLKoder commented on June 1, 2024

@fmartingr, maybe don't need to close? This issue was remove from your tags either.

from shiori.

fmartingr avatar fmartingr commented on June 1, 2024

Yeah leave it open for now so I use this as a reminder to properly update the docs 👍

from shiori.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.