Skip to content

Commit db88606

Browse files
authored
Merge pull request #23 from gurneyalex/set_cookies_secure
allow setting cookies to Secure
2 parents d9ddf45 + 305ffc4 commit db88606

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

9.0/templates/nginx.conf.tmpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ http {
108108
proxy_buffer_size 64k;
109109
proxy_busy_buffers_size 64k;
110110
proxy_intercept_errors on;
111+
{{ if getenv "NGX_ODOO_SECURE_COOKIES" }}
112+
proxy_cookie_path / "/; Secure";
113+
{{end}}
111114
}
112115
{{ if getenv "NGX_ODOO_EXTRA_LOCATION" }}
113116
{{ $odoo_extra_location := getenv "NGX_ODOO_EXTRA_LOCATION" }}

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,8 @@ set the result in the variable 'NGX_HTPASSWD' ex:
5454
```
5555
vrenaville:$apr1$lDdea9Jt$DAJQG0W1s4JEuuVQQxiur.
5656
```
57+
58+
### Secure cookies
59+
60+
If you want all cookies to be have the Secure attribute, then you can set the
61+
environment variable NGX_ODOO_SECURE_COOKIES to 1.

0 commit comments

Comments
 (0)