make TRANSBEAM_REVERSE_PROXY default to true, safe because it will bind to localhost

This commit is contained in:
xenofem 2022-05-29 10:54:17 -04:00
parent 71242d37ce
commit 56050a65fd

View file

@ -288,7 +288,7 @@ async fn main() -> std::io::Result<()> {
let storage_dir: PathBuf = env_or_else("TRANSBEAM_STORAGE_DIR", || PathBuf::from("storage"));
let port: u16 = env_or("TRANSBEAM_PORT", 8080);
let mnemonic_codes: bool = env_or("TRANSBEAM_MNEMONIC_CODES", true);
let reverse_proxy: bool = env_or("TRANSBEAM_REVERSE_PROXY", false);
let reverse_proxy: bool = env_or("TRANSBEAM_REVERSE_PROXY", true);
let max_lifetime: u16 = env_or("TRANSBEAM_MAX_LIFETIME", 30);
let max_upload_size: u64 =
env_or::<ByteSize>("TRANSBEAM_MAX_UPLOAD_SIZE", ByteSize(16 * bytesize::GB)).as_u64();