web frontend for minelev
See examples
production.env
NODE_ENV=production #Node environment
WEB_SERVER_PORT=8000 #Port for web server
ORIGIN_URL=https://www.minelev.no/signin #url for instance
COOKIE_SECRET=@minelev-cookie-secret #secret for cookie
ENCRYPTOR_SECRET=@minelev-encryptor-secret #secret for data encryption
JWT_SECRET=@minelev-jwt-secret #Secret for jwt
YAR_SECRET=@minelev-session-secret #Secret for local session
AUTH_SERVICE_URL=@tfk-auth-service-feide #Url for auth service
BUDDY_SERVICE_URL=@minelev-buddy-service-url #Url for buddy service (https://github.com/telemark/minelev-buddy)
LOGS_SERVICE_URL=@minelev-logs-service-url #Url for logs service (https://github.com/telemark/minelev-logs)
STATS_SERVICE_URL=@minelev-logs-service-url #Url for stats service (https://github.com/telemark/minelev-logs-stats)
PDF_SERVICE_URL=https://pdf.minelev.no #Url for pdf service (https://github.com/telemark/pdftemplater-webservice-docker)
QUEUE_SERVICE_URL=@minelev-queue-service-url #Url for queue service (https://github.com/telemark/minelev-logs)
#FEATURE_USE_YFF=on #Enable yff
#FEATURE_USE_PICTURES=on #Enable pictures. Requires pictureservice
#FEATURE_USE_NOTES=on #Enable notes. Requires notesservice
#YFF_SERVICE_URL=https://yff.service.minelev.no #Url for yff-service (if enabled) (https://github.com/telemark/micro-yff-programomrader)
#NOTES_SERVICE_URL=https://notes.service.io #Url for notes-service (if enabled) (https://github.com/telemark/micro-sikker-sone-queue)
#NOTES_SERVICE_SECRET=@notes-service-secret #Secret for notes service
PAPERTRAIL_HOSTNAME=minelev #Hostname for papertrail
PAPERTRAIL_HOST=@tfk-papertrail-host #Url for papertrail
PAPERTRAIL_PORT=@tfk-papertrail-port #Port for papertrail
Be sure to get the time on the server right!
ntpdate no.pool.ntp.org
See this example
Set DNS for the minelev_micro_auth_ldap and the minelev_webserver services. These are the only services that needs to be exposed to the internet.
See this example
You need to set DNS pointers to use this example:
127.0.0.1 minelev.no
127.0.0.1 auth.minelev.no
127.0.0.1 buddy.minelev.no
127.0.0.1 logs.minelev.no
127.0.0.1 buddy-api.minelev.no
127.0.0.1 mongodb.minelev.no
127.0.0.1 pdf.minelev.no
Do changes in the env-files
$ docker-compose up -d
Open http://minelev.no in the browser
Login with username: gauss
password: password
See this example
$ docker-compose up -d
Open http://localhost in the browser
Login with username: gauss
password: password
- minelev-buddy buddy service for MinElev
- minelev-logs logs service for MinElev
- minelev-logs-stats statistics service for MinElev logs
- minelev-notifications notifications service for MinElev
- minelev-leder web frontend for MinElev - school administration
- minelev-dashboard dashboard for MinElev
- micro-yff-programomrader yff services
- pdf-service convert templates and data to pdf