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_KEYURL-safe string that can be passed to selftest.php?key= to get around DDoS protection; defaults to nothing, which means selftest is disabledGRAMMAR_DA_HOSTHostname for the Danish grammar backend; defaults to localhostGRAMMAR_DA_PORTTCP port that the Danish grammar backend is listening on; defaults to 13400GRAMMAR_NB_HOSTHostname for the Norwegian Bokmål grammar backend; defaults to localhostGRAMMAR_NB_PORTTCP port that the Norwegian Bokmål grammar backend is listening on; defaults to 13500GRAMMAR_SV_HOSTHostname for the Swedish grammar backend; defaults to localhostGRAMMAR_SV_PORTTCP port that the Swedish grammar backend is listening on; defaults to 13600COMMA_HOSTHostname for the comma backend; defaults to localhostCOMMA_PORTTCP port that the comma backend is listening on; defaults to 13300COMMA_URLNOT IN USE Full URL to the Kommaforslag frontend. If defined, this enables users sending their text to the Kommaforslag service.MVID_SERVICEMV-ID service name; defaults to grammateketMVID_SECRETMV-ID secretMVID_ACCESS_IDSComma-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_URLWebSocket URL to the Caduceus message broker; defaults tows://localhost:3000/CADUCEUS_SECRETCaduceus secret; defaults to the server's hostnameGOOGLE_AIDGoogle Analytics Property IDHMAC_SERVICEHMAC field to distinguish which service it pertains to; defaults to grammarMV_SIGNON_HOSTDefaults to signon.vitec-mv.comMV_SIGNON_API_HOSTDefaults to mvidsignonapi.vitec-mv.comMV_IW_DICT_HOSTDefaults to dictionary.intowords.comMV_IW_ONLINE_HOSTDefaults to online.intowords.comMV_TESTIf set to 1, theMV_*_HOSTsettings 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