mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
feat: move headers down so that it's more readable
This commit is contained in:
parent
28aadfa624
commit
df310f3976
1 changed files with 7 additions and 6 deletions
|
|
@ -24,12 +24,6 @@
|
||||||
|
|
||||||
# Hardened TLS and HSTS preloading
|
# Hardened TLS and HSTS preloading
|
||||||
appendHttpConfig = ''
|
appendHttpConfig = ''
|
||||||
# Most important header
|
|
||||||
add_header meow "nya!";
|
|
||||||
add_header pronouns "any but neopronouns";
|
|
||||||
add_header gender "maybe";
|
|
||||||
add_header locale "[en_US, nl_NL]";
|
|
||||||
|
|
||||||
# Add HSTS header with preloading to HTTPS requests.
|
# Add HSTS header with preloading to HTTPS requests.
|
||||||
# Do not add HSTS header to HTTP requests.
|
# Do not add HSTS header to HTTP requests.
|
||||||
map $scheme $hsts_header {
|
map $scheme $hsts_header {
|
||||||
|
|
@ -48,6 +42,13 @@
|
||||||
|
|
||||||
# # This might create errors
|
# # This might create errors
|
||||||
# # proxy_cookie_path / "/; secure; HttpOnly; SameSite=strict";
|
# # proxy_cookie_path / "/; secure; HttpOnly; SameSite=strict";
|
||||||
|
|
||||||
|
# Most important headers
|
||||||
|
add_header meow "nya!";
|
||||||
|
add_header matrix "https://matrix.to/#/@liv:liv.town"
|
||||||
|
add_header pronouns "any but neopronouns";
|
||||||
|
add_header gender "maybe";
|
||||||
|
add_header locale "[en_US, nl_NL]";
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue