- nginx
- nginx-x-rid-header module (https://github.com/newobj/nginx-x-rid-header)
We want to track image downloads from client side and in javascript we cannot get the header values:(.
| # Copyright 2021 Cloud Ace. All Rights Reserved. | |
| # Author: Van Duong | |
| # How To: | |
| # /etc/NetworkManager/dispatcher.d/ | |
| # Centos: Copy file 99_google_set_hostname.sh to /etc/dhcp/dhclient.d/ | |
| # Debian: Copy file 99_google_set_hostname.sh to /etc/dhcp/dhclient-exit-hooks.d/ | |
| # Enable by add execute permission : chmod +x 99_google_set_hostname.sh | |
| # Custom hostname by add metadata in GCE Instace: hostname: FQDN | |
| #!/bin/bash | |
| new_host_name=$(curl --fail --silent http://metadata.google.internal/computeMetadata/v1/instance/attributes/hostname -H "Metadata-Flavor: Google") |
We want to track image downloads from client side and in javascript we cannot get the header values:(.