├── .gitignore ├── Dockerfile ├── .dockerignore ├── README.md ├── fly.toml └── public ├── goodbye.html └── index.html /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM nginx:alpine 2 | 3 | COPY public /usr/share/nginx/html 4 | -------------------------------------------------------------------------------- /.dockerignore: -------------------------------------------------------------------------------- 1 | # flyctl launch added from .gitignore 2 | **/.DS_Store 3 | fly.toml 4 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # hello-static 2 | 3 | An example static website repository you can use to deploy a static site on Fly.io, using nginx. 4 | 5 | Used by the guide at https://fly.io/docs/getting-started/static/ 6 | -------------------------------------------------------------------------------- /fly.toml: -------------------------------------------------------------------------------- 1 | # fly.toml app configuration file generated for hello-static on 2024-09-17T09:44:10-05:00 2 | # 3 | # See https://fly.io/docs/reference/configuration/ for information about how to use this file. 4 | # 5 | 6 | app = 'hello-static' 7 | 8 | [build] 9 | 10 | [http_service] 11 | internal_port = 80 12 | force_https = true 13 | auto_stop_machines = 'stop' 14 | auto_start_machines = true 15 | min_machines_running = 0 16 | processes = ['app'] 17 | 18 | [[vm]] 19 | memory = '256mb' 20 | cpu_kind = 'shared' 21 | cpus = 1 22 | -------------------------------------------------------------------------------- /public/goodbye.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Still Hello from Fly 6 | 7 | 35 | 36 | 37 | 38 |

You say goodbye

39 |

But I say hello.

40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Hello from Fly 6 | 7 | 35 | 36 | 37 | 38 |

Hello from Fly.io with a static web site

39 |

Or goodbye.

40 | 41 | 42 | 43 | --------------------------------------------------------------------------------