simplify changing attributes + document it

This commit is contained in:
2026-09-02 14:18:53 +05:30
parent d079193194
commit 28132dfd66
4 changed files with 12 additions and 1 deletions
+3 -1
View File
@@ -9,6 +9,8 @@ server {
ssl_certificate_key /etc/nginx/ssl/key.pem;
server_name a.website.com b.website.com sub.a.website.com;
include 'conf.d/cookieattr.part';
root /srv/www;
try_files $uri $uri.html /index.html =200;
@@ -20,7 +22,7 @@ server {
}
location /set {
try_files $uri $uri.html /index.html =200;
add_header set-cookie 'flavour=$flavour; max-age=3600;';
add_header set-cookie 'flavour=$flavour; $cookie_attr';
}
location /clear {
try_files $uri $uri.html /index.html =200;