Skip to content

Commit

Permalink
Merge branch 'igornovg/boun-add-origin' into 'master'
Browse files Browse the repository at this point in the history
Log HTTP Origin header in nginx

* Add `http_origin` field to `nginx.conf`
* Add `http_origin` field to `vector.toml`

See https://dfinity.atlassian.net/browse/BOUN-694 for details 

See merge request dfinity-lab/public/ic!11853
  • Loading branch information
blind-oracle committed Apr 17, 2023
2 parents 3d1bcbd + 207acd3 commit 495ebb5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions ic-os/boundary-api-guestos/rootfs/etc/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ http {
'"host":' '"$host"' ','
'"hostname":' '"$hostname"' ','
'"http_host":' '"$http_host"' ','
'"http_origin":' '"$http_origin"' ','
'"http_referer":' '"$http_referer"' ','
'"http_user_agent":' '"$http_user_agent"' ','
'"https":' '"$https"' ','
Expand Down
1 change: 1 addition & 0 deletions ic-os/boundary-guestos/rootfs/etc/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ http {
'"host":' '"$host"' ','
'"hostname":' '"$hostname"' ','
'"http_host":' '"$http_host"' ','
'"http_origin":' '"$http_origin"' ','
'"http_referer":' '"$http_referer"' ','
'"http_user_agent":' '"$http_user_agent"' ','
'"https":' '"$https"' ','
Expand Down
1 change: 1 addition & 0 deletions ic-os/boundary-guestos/rootfs/etc/vector/vector.toml
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ table = "http_access"
"host",
"hostname",
"http_host",
"http_origin",
"http_referer",
"http_user_agent",
"https",
Expand Down

0 comments on commit 495ebb5

Please sign in to comment.