{"id":22039479,"url":"https://github.com/mpolinowski/nomadic-fileserver","last_synced_at":"2026-04-18T11:31:51.573Z","repository":{"id":111484009,"uuid":"573389714","full_name":"mpolinowski/nomadic-fileserver","owner":"mpolinowski","description":"Provisioning an HTTP Fileserver with Hashicorp Nomad","archived":false,"fork":false,"pushed_at":"2022-12-02T10:56:05.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-06T14:42:14.887Z","etag":null,"topics":["fileserver","hashicorp-nomad","nginx"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mpolinowski.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-02T10:54:02.000Z","updated_at":"2022-12-03T03:49:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"ff4c4c1d-b6b5-4c9f-a15a-317923485153","html_url":"https://github.com/mpolinowski/nomadic-fileserver","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mpolinowski/nomadic-fileserver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpolinowski%2Fnomadic-fileserver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpolinowski%2Fnomadic-fileserver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpolinowski%2Fnomadic-fileserver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpolinowski%2Fnomadic-fileserver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mpolinowski","download_url":"https://codeload.github.com/mpolinowski/nomadic-fileserver/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mpolinowski%2Fnomadic-fileserver/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31966929,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fileserver","hashicorp-nomad","nginx"],"created_at":"2024-11-30T11:10:58.932Z","updated_at":"2026-04-18T11:31:51.539Z","avatar_url":"https://github.com/mpolinowski.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Provisioning an HTTP Fileserver\n\nSpin up an NGINX container with __Hashicorp Nomad__ that servers your files via HTTP. You will have to change the `server_name` to your domain or local IP. Run the job file and navigate your browser to port `8888`:\n\n\n```bash\nserver {\n    listen 8080;\n    listen [::]:8080;\n\n    server_name  my.domain.com;\n\n    location ~ /secret/.* {\n\tauth_basic \"Restricted\";\n        auth_basic_user_file /etc/nginx/conf.d/.htpasswd; \n        root   /usr/share/nginx/html;\n    }\n\n    location / {\n        root   /usr/share/nginx/html;\n        index  index.html index.htm;\n    }\n}\n```\n\nNomad will create a text file in both the `/secret/` and `/public/` directory for testing:\n\n\n![Provisioning an HTTP Fileserver with Hashicorp Nomad](./nomadic-fileserver.png)\n\n\n\n## NGINX Server Configuration\n\nCheck [nginx_docker_ingress](https://github.com/mpolinowski/nginx_docker_ingress) on how to configure NGINX. The configuration is automatically generated by Nomad - but I did remove the TLS configuration for this example.\n\n\n## Service Check\n\nThe uses Consul to verify that the web service is available - if you don't use either remove the `check` or switch the `provider` to `nomad`:\n\n\n```bash\ncheck {\n    name     = \"HTTP Health\"\n    path     = \"/\"\n    type     = \"http\"\n    protocol = \"http\"\n    interval = \"10s\"\n    timeout  = \"2s\"\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmpolinowski%2Fnomadic-fileserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmpolinowski%2Fnomadic-fileserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmpolinowski%2Fnomadic-fileserver/lists"}