{"id":23613809,"url":"https://github.com/clement-muth/nextjs-traefik","last_synced_at":"2026-05-18T15:13:33.091Z","repository":{"id":211559493,"uuid":"729458888","full_name":"Clement-Muth/nextjs-traefik","owner":"Clement-Muth","description":"Enhance your Next.js app with Traefik integration—no Docker needed. This repo streamlines a personalized host setup like \"nextjs.localhost\" using a reverse proxy and load balancer. Achieve secure HTTPS access via TLS with mkcert. Simplify deployment, configure Traefik and Next.js settings effortlessly for optimal performance.","archived":false,"fork":false,"pushed_at":"2023-12-09T10:12:03.000Z","size":33,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-27T17:35:27.753Z","etag":null,"topics":["https","load-balancer","mkcert","nextjs","reverse-proxy","tls","traefik","without-docker"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/Clement-Muth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-12-09T09:48:51.000Z","updated_at":"2024-12-18T09:08:27.000Z","dependencies_parsed_at":"2023-12-09T11:24:10.257Z","dependency_job_id":"96ba7450-6b20-4e39-88ec-129cefdf23b1","html_url":"https://github.com/Clement-Muth/nextjs-traefik","commit_stats":null,"previous_names":["clement-muth/nextjs-traefik"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clement-Muth%2Fnextjs-traefik","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clement-Muth%2Fnextjs-traefik/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clement-Muth%2Fnextjs-traefik/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Clement-Muth%2Fnextjs-traefik/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Clement-Muth","download_url":"https://codeload.github.com/Clement-Muth/nextjs-traefik/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239493127,"owners_count":19647994,"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":["https","load-balancer","mkcert","nextjs","reverse-proxy","tls","traefik","without-docker"],"created_at":"2024-12-27T17:28:45.388Z","updated_at":"2026-05-18T15:13:28.031Z","avatar_url":"https://github.com/Clement-Muth.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Traefik Integration with Next.js App\n\n## Overview\n\nThis repository serves as a guide and configuration setup for integrating [Traefik](https://traefik.io/traefik/) with a Next.js application WITHOUT docker. The goal is to implement Traefik as a reverse proxy and load balancer, providing a customized host, such as \"nextjs.localhost.\" Additionally, the setup includes TLS integration for secure HTTPS access, utilizing a certificate generated by [mkcert](https://github.com/FiloSottile/mkcert).\n\n## Prerequisites\n\nBefore getting started, ensure you have the following prerequisites installed on your system:\n\n- Traefik\n- Mkcert\n\n## Getting Started\n\nFollow these steps to integrate Traefik with your Next.js app:\n\n1. Clone this repository:\n\n   ```bash\n   git clone https://github.com/Clement-Muth/nextjs-traefik.git\n   ```\n\n2. Navigate to the project directory:\n\n   ```bash\n   cd nextjs-traefik\n   ```\n\n3. Generate SSL certificates using mkcert:\n\n   ```bash\n   mkcert -uninstall\n        sudo rm -rf /etc/ssl/certs/mkcert*\n        mkdir -p certs/root\n        mkcert -cert-file certs/cert.pem -key-file certs/key.pem \"nextjs.localhost\"\n        mkcert -install\n   ```\n\n4. Update Traefik configuration in the `traefik/dynamic.yaml` file as needed.\n\n5. Run traefik:\n\n   ```bash\n   traefik --configFile=traefik/traefik.yaml\n   ```\n\n6. Access the Next.js app using the configured host:\n\n   ```bash\n   https://nextjs.localhost\n   ```\n\n## Configuration Details\n\n### Traefik Configuration (`traefik/dynamic.yaml`/`traefik/traefik.yaml`)\n\nAdjust the Traefik configuration based on your requirements. This file includes settings for entry points, middleware, and SSL certificates.\n\n## Contributing\n\nFeel free to contribute to this project by opening issues or submitting pull requests. Your feedback and enhancements are highly appreciated!\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE.md).\n\n---","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclement-muth%2Fnextjs-traefik","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclement-muth%2Fnextjs-traefik","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclement-muth%2Fnextjs-traefik/lists"}