Roxen.git / server / base_server / global_variables.pike

version» Context lines:

Roxen.git/server/base_server/global_variables.pike:1:   // This file is part of Roxen Webserver.   // Copyright © 1996 - 2000, Roxen IS. - // $Id: global_variables.pike,v 1.56 2000/12/30 07:16:58 per Exp $ + // $Id: global_variables.pike,v 1.57 2001/01/06 07:24:26 nilsson Exp $      /*   #pragma strict_types   */   #define DEFVAR mixed...:object   #define BDEFVAR mixed...:object      #define IN_ROXEN   #include <module.h>   inherit "read_config";
Roxen.git/server/base_server/global_variables.pike:533:    LOCALE(159, "Locale, used to localize all "    "messages in Roxen. Standard means using "    "the default locale, which varies "    "according to the value of "    "the 'LANG' environment variable.")))    ->set_changed_callback( lambda(Variable.Variable s) {    roxenp()->set_default_locale(QUERY(locale));    roxenp()->set_locale();    } );    +  string secret=Crypto.md5()->update(""+time(1)+random(100000))->digest(); +  secret = MIME.encode_base64(secret,1); +  defvar("server_salt", secret[..sizeof(secret)-3], LOCALE(0, "Server secret"), +  TYPE_STRING|VAR_MORE, +  LOCALE(0, "The server secret is a string used in some " +  "cryptographic functions, such as calculating " +  "unique, non-guessable session id's. Change this " +  "value into something that is hard to guess, unless " +  "you are satisfied with what your computers random " +  "generator has produced") ); +     defvar("suicide_engage", 0,    LOCALE(160, "Auto Restart: Enable Automatic Restart"),    TYPE_FLAG|VAR_MORE,    LOCALE(161, "If set, Roxen will automatically restart after a "    "configurable number of days. Since Roxen uses a monolith, "    "non-forking server model the process tends to grow in size "    "over time. This is mainly due to heap fragmentation but also "    "because of memory leaks.")    );