X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;f=backend%2Fsrc%2Fconsts.rs;h=02b844db9eb1cc50b0e54c026b00f29b21041da9;hb=8a3fef096d720666dc8a54789aee02250642d8a1;hp=896fbddd626cc1efc0101e50ff19f5357aee1e0f;hpb=b6235fb76ce82f96503cda83eebe8106320b2a0d;p=recipes.git diff --git a/backend/src/consts.rs b/backend/src/consts.rs index 896fbdd..02b844d 100644 --- a/backend/src/consts.rs +++ b/backend/src/consts.rs @@ -3,4 +3,5 @@ pub const FILE_CONF: &str = "conf.ron"; pub const DB_DIRECTORY: &str = "data"; pub const DB_FILENAME: &str = "recipes.sqlite"; pub const SQL_FILENAME: &str = "sql/version_{VERSION}.sql"; -pub const VALIDATION_TOKEN_DURATION: i64 = 1 * 60 * 60; // 1 hour. [s]. \ No newline at end of file +pub const VALIDATION_TOKEN_DURATION: i64 = 1 * 60 * 60; // 1 hour. [s]. +pub const REVERSE_PROXY_IP_HTTP_FIELD: &str = "x-real-ip"; \ No newline at end of file