Skip to content

Instantly share code, notes, and snippets.

@alichay
Created February 22, 2023 19:00
Show Gist options
  • Save alichay/f3d4e102c66d8ea6ad3e0bff9e1d27cf to your computer and use it in GitHub Desktop.
Save alichay/f3d4e102c66d8ea6ad3e0bff9e1d27cf to your computer and use it in GitHub Desktop.
My standard flyctl test image :)
FROM nginxdemos/hello:latest
RUN rm /etc/nginx/conf.d/hello.conf
ADD hello.conf /etc/nginx/conf.d/
server {
listen 8080;
listen [::]:8080;
root /usr/share/nginx/html;
try_files /index.html =404;
expires -1;
sub_filter_once off;
sub_filter 'server_hostname' '$hostname';
sub_filter 'server_address' '$server_addr:$server_port';
sub_filter 'server_url' '$request_uri';
sub_filter 'server_date' '$time_local';
sub_filter 'request_id' '$request_id';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment