Skip to content

EsupPortail/esup-otp-manager

Repository files navigation

esup-otp-manager

Manager for the esup-otp-api. Allow users to edit theirs preferences and admins to administrate ;)

Version

1.3 Require "npm install"

  • support Webauthn (require esup-otp-api v1.5.0)
  • update dependency versions
  • fix some accessibility problems (may break custom CSS)
  • allow international phone number (To authorize only certain numbers. Modify the regex in the app.js file )

Requirements

Installation

Behind Apache

  • https
RequestHeader set X-Forwarded-Proto https
RequestHeader set X-Forwarded-Port 443

RewriteEngine On

RewriteCond %{QUERY_STRING} transport=websocket [NC]
RewriteRule /(.*) ws://127.0.0.1:4000/$1 [P]


<Location />
ProxyPass http://127.0.0.1:4000/ retry=1
ProxyPassReverse http://127.0.0.1:4000/
</Location>

Systemd

[Unit]
Description=esup-otp-manager nodejs app
Documentation=https://github.com/EsupPortail/esup-otp-manager
After=network.target

[Service]
Type=simple
User=esup
WorkingDirectory=/opt/esup-otp-manager
ExecStart=/usr/bin/node run
Restart=on-failure

[Install]
WantedBy=multi-user.target

Development

License

MIT [EsupPortail]: https://www.esup-portail.org/