Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/desaiuditd/traefik-reverse-proxy
https://github.com/desaiuditd/traefik-reverse-proxy
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/desaiuditd/traefik-reverse-proxy
- Owner: desaiuditd
- Created: 2021-06-01T08:57:44.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-13T19:12:37.000Z (8 months ago)
- Last Synced: 2024-05-28T16:23:01.537Z (7 months ago)
- Language: Makefile
- Size: 15.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# traefik-reverse-proxy
## Local
### Generate SSL cert
1. Install [minica](https://github.com/jsha/minica)
1. `brew install minica`
2. `cd certs`
3. `minica --domains '*.lvh.me'`
4. `sudo security add-trusted-cert -d -r trustAsRoot -p ssl -k /Library/Keychains/System.keychain _.lvh.me/cert.pem`You can run steps 3. & 4. for as many other domains as you need for any other services.
## Production
### Basic Auth
We will do basic auth using `userFile` in Traefik.
Generate `.htpasswd` file.
```bash
sudo apt install apache2-utils # Linux
htpasswd -cb .htpasswd admin
```### Change domain name for the Traefik Dashboard
In `docker-compose.production.yaml` file.
```
traefik.http.routers.rev-proxy.rule=Host(`proxy.example.com`)
```### Change email for Let's Encrypt SSL renewal.
In `docker-compose.production.yaml` file.
```
TRAEFIK_CERTIFICATESRESOLVERS_LETSENCRYPTRESOLVER_ACME_EMAIL=john.doe@example.com
```### GoDaddy API Secrets
Generate new api key and secret for GoDaddy API from - https://developer.godaddy.com/keys
and save them in below files.
- ./secrets/godaddy_api_key
- ./secrets/godaddy_api_secret