{"id":13807003,"url":"https://github.com/ryanbekhen/feserve","last_synced_at":"2025-08-21T20:31:10.453Z","repository":{"id":65299010,"uuid":"589331365","full_name":"ryanbekhen/feserve","owner":"ryanbekhen","description":"A lightweight application serving frontend applications and load balancer.","archived":false,"fork":false,"pushed_at":"2023-12-19T00:12:54.000Z","size":233,"stargazers_count":8,"open_issues_count":4,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-15T04:15:09.571Z","etag":null,"topics":["frontend-server","letsencrypt-certificates","loadbalancer","spa-server","static-server"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ryanbekhen.png","metadata":{"files":{"readme":"README-id.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY-id.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"ryanbekhen","patreon":null,"open_collective":null,"ko_fi":"ryanbekhen","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":"https://saweria.co/ryanbekhen"}},"created_at":"2023-01-15T20:27:38.000Z","updated_at":"2023-10-09T15:52:40.000Z","dependencies_parsed_at":"2024-06-20T09:22:20.104Z","dependency_job_id":"219e86e4-ed35-4fa4-805f-ababa2e02fe3","html_url":"https://github.com/ryanbekhen/feserve","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanbekhen%2Ffeserve","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanbekhen%2Ffeserve/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanbekhen%2Ffeserve/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanbekhen%2Ffeserve/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryanbekhen","download_url":"https://codeload.github.com/ryanbekhen/feserve/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230530648,"owners_count":18240497,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["frontend-server","letsencrypt-certificates","loadbalancer","spa-server","static-server"],"created_at":"2024-08-04T01:01:19.232Z","updated_at":"2024-12-20T03:32:01.284Z","avatar_url":"https://github.com/ryanbekhen.png","language":"Go","readme":"# Feserve\n\n[![Mentioned in Awesome Fiber](https://awesome.re/mentioned-badge.svg)](https://github.com/gofiber/awesome-fiber#%EF%B8%8F-tools)\n[![Go Report Card](https://goreportcard.com/badge/github.com/ryanbekhen/feserve)](https://goreportcard.com/report/github.com/ryanbekhen/feserve)\n![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/ryanbekhen/feserve/release.yml?style=flat-square)\n![Release](https://img.shields.io/github/v/release/ryanbekhen/feserve?display_name=release\u0026style=flat-square)\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fryanbekhen%2Ffeserve.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fryanbekhen%2Ffeserve?ref=badge_shield)\n\n[English](README.md) | Indonesia\n\nFeserve adalah aplikasi ringan yang dibuat untuk memudahkan para Frontend Developer dalam men-deploy aplikasinya, tanpa harus menggunakan Nginx, Node.js atau sejenisnya yang memakan banyak ruang penyimpanan.\n\n## Fitur\n\n- Sajikan file statis\n- Url path khusus ke file\n- Load balancer (HTTP)\n- Hasilkan sertifikat SSL dan pembaruan otomatis (Let's Encrypt)\n\n## Instalasi\n\n### File Biner\n\nDisini saya menggunakan linux dengan arsitektur amd64 sebagai contoh. Harap sesuaikan dengan OS dan Arsitektur Anda [di sini](https://github.com/ryanbekhen/feserve/releases). Kemudian unduh, verifikasi tanda tangan, dan ekstrak seperti contoh berikut.\n\n```shell\nwget https://github.com/ryanbekhen/feserve/releases/download/v0.1.0/feserve_0.1.0_linux_amd64.zip\nwget https://github.com/ryanbekhen/feserve/releases/download/v0.1.0/checksums.txt\nunzip feserve_0.1.0_linux_amd64.zip \nsha256sum --ignore-missing -c checksums.txt\n```\n\nSetelah menjalankan perintah di atas, pindahkan file biner ke `/usr/local/bin` dengan perintah berikut.\n\n```shell\nsudo mv feserve /usr/local/bin\n\n# permission for 80/443\nsudo setcap 'cap_net_bind_service=+ep' ./usr/local/bin\n```\n\n### Melalui `go install`\n\n```shell\ngo install github.com/ryanbekhen/feserve\n```\n\n\u003e **Catatan**: go version go1.19.5 atau lebih\n\n## Mempersiapkan\n\n### Struktur Direktori\n\n```text\nroot-directory/\n|- build/\n|- app.yaml\n```\n\n### Konfigurasi `app.yaml`\n\n```yaml\nversion: 1\nport: 8000\npublicDir: build\n```\n\nDengan konfigurasi di atas, feserve akan berjalan di port `8000` dan `public/` sebagai direktori publiknya. Untuk melihat detail lebih lanjut [di sini](docs/configuration-id.md).\n\n## Penggunaan\n\n### Lokal\n\nUntuk menjalankannya secara lokal, jalankan saja `feserve` di direktori root Anda dengan perintah berikut.\n\n```shell\nfeserve\n```\n\nKemudian buka browser di \u003chttp://localhost:8000\u003e.\n\n### Docker\n\nSebelum menjalankan perintah di bawah ini, buat dulu file config `app.yaml`.\n\n```shell\ndocker run --name feserve -d \\\n  -p 80:80 \\\n  -p 443:443 \\\n  -v $(pwd)/certs:/certs \\\n  -v $(pwd)/app.yaml:/app.yaml \\\n  ghcr.io/ryanbekhen/feserve:latest\n```\n\n### Dockerfile\n\nUntuk menjalankannya di dalam docker, buat file `Dockerfile` seperti contoh berikut.\n\n```Dockerfile\n# pembuatan aplikasi\nFROM node:16-alpine As build\nWORKDIR /app\nCOPY . .\nRUN npm ci \nRUN npm run build\nENV NODE_ENV production\n\n# pembuatan serve\nFROM ghcr.io/ryanbekhen/feserve:latest\nWORKDIR /app\nCOPY app.yaml .\nCOPY --from=build /app/build /app/build\nEXPOSE 8000\nENTRYPOINT [\"feserve\"]\n```\n\nBisa juga dengan cara berikut jika sudah kita build terlebih dahulu.\n\n```Dockerfile\nFROM ghcr.io/ryanbekhen/feserve:latest\nWORKDIR /app\nCOPY app.yaml .\nCOPY build ./build\nEXPOSE 8000\nENTRYPOINT [\"feserve\"]\n```\n\nUntuk mencoba menjalankannya cukup dengan perintah berikut.\n\n```shell\ndocker build -t image-name .\ndocker run --rm -p 8000:8000 image-name\n```\n\nKemudian buka browser di \u003chttp://localhost:8000\u003e.\n\n## Keamanan\n\nJika Anda menemukan kerentanan keamanan dalam Feserve, silakan kirim email ke ryanbekhen.official@gmail.com.\n\n## Lisensi\n\nProgram ini adalah perangkat lunak gratis. Anda dapat mendistribusikan ulang dan/atau memodifikasinya di bawah ketentuan lisensi MIT. Feserve dan kontribusi apapun adalah hak cipta © oleh Achmad Irianto Eka Putra 2023.\n","funding_links":["https://github.com/sponsors/ryanbekhen","https://ko-fi.com/ryanbekhen","https://saweria.co/ryanbekhen"],"categories":["🛠️ Tools"],"sub_categories":["🌱 Third Party"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanbekhen%2Ffeserve","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryanbekhen%2Ffeserve","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanbekhen%2Ffeserve/lists"}