Install and configure https://github.com/jedisct1/piknik
Host ips need to be static or have a dns.
Add the bash aliases (either mac or linux) for easy copy/paste directly from clipboard to Piknik.
| exports.handler = (event, context, callback) => { | |
| const request = event.Records[0].cf.request; | |
| if (request.headers['host'][0].value !== 'www.example.com') { | |
| /* | |
| * Generate HTTP redirect response with 302 status code and Location header. | |
| */ | |
| const response = { | |
| status: '302', | |
| statusDescription: 'Found', |
| echo "LABEL=DRIVELABEL none ntfs rw,auto" >> /etc/fstab |
Install and configure https://github.com/jedisct1/piknik
Host ips need to be static or have a dns.
Add the bash aliases (either mac or linux) for easy copy/paste directly from clipboard to Piknik.