The frontend is stateless and can be killed or launched at will. Because of the sensitive information stored in the environment, there is no phpinfo() debug file.
The frontend includes a health check in the form of selfcheck.php, which will send a random sentence to the backend and report back with a non-error status code if it's working as expected.
DEBUG_KEY
URL-safe string that can be passed to selftest.php?key= to get around DDoS protection; defaults to nothing, which means selftest is disabledGRAMMAR_DA_HOST
Hostname for the Danish grammar backend; defaults to localhostGRAMMAR_DA_PORT
TCP port that the Danish grammar backend is listening on; defaults to 13400GRAMMAR_NB_HOST
Hostname for the Norwegian Bokmål grammar backend; defaults to localhostGRAMMAR_NB_PORT
TCP port that the Norwegian Bokmål grammar backend is listening on; defaults to 13500GRAMMAR_SV_HOST
Hostname for the Swedish grammar backend; defaults to localhostGRAMMAR_SV_PORT
TCP port that the Swedish grammar backend is listening on; defaults to 13600COMMA_HOST
Hostname for the comma backend; defaults to localhostCOMMA_PORT
TCP port that the comma backend is listening on; defaults to 13300COMMA_URL
NOT IN USE Full URL to the Kommaforslag frontend. If defined, this enables users sending their text to the Kommaforslag service.MVID_SERVICE
MV-ID service name; defaults to grammateketMVID_SECRET
MV-ID secretMVID_ACCESS_IDS
Comma-separated list of AIs that grant access to this service; defaults to product.web.da.grammarsuggestions.release,product.web.sv.grammarsuggestions.release,product.web.nb.grammarsuggestions.releaseCADUCEUS_URL
WebSocket URL to the Caduceus message broker; defaults tows://localhost:3000/
CADUCEUS_SECRET
Caduceus secret; defaults to the server's hostnameGOOGLE_AID
Google Analytics Property IDHMAC_SERVICE
HMAC field to distinguish which service it pertains to; defaults to grammarMV_SIGNON_HOST
Defaults to signon.vitec-mv.comMV_SIGNON_API_HOST
Defaults to mvidsignonapi.vitec-mv.comMV_IW_DICT_HOST
Defaults to dictionary.intowords.comMV_IW_ONLINE_HOST
Defaults to online.intowords.comMV_TEST
If set to 1, theMV_*_HOST
settings default to their testing equivalents instead; defaults to 0
This repo includes copies of:
textalk/websocket
: https://github.com/Textalk/websocket-php - MIT licensejquery-scrollintoview
: https://github.com/litera/jquery-scrollintoview - MIT license
The code pulls in these external dependencies:
TinyMCE
: Version 4.3 via TinyMCE CDNjQuery
: Version 1.12.4 via Google Hosted LibrariesBootstrap
: Version 3.3.7 via MaxCDN