23 Commits

Author SHA1 Message Date
7b6909186a instrument logging to determine LE failures v1.0.6 2025-11-27 08:19:57 +00:00
21bc679ac6 Revert "fix CORS headers"
This reverts commit fe83bd5b71.
2025-11-14 19:31:31 +00:00
fe83bd5b71 fix CORS headers v1.0.5 2025-11-14 19:07:11 +00:00
456a0ce108 Enhance favicon handling with content type detection
- Added a new variable to store the content type for the favicon.
- Updated the favicon loading mechanism to determine the content type based on the file extension.
- Adjusted the default fallback to use an embedded favicon.ico instead of orly.png.
- Modified the favicon handler to set the appropriate content type when serving the favicon.
2025-10-10 10:19:49 +01:00
81fbc9b2a4 remove noisy logs v1.0.4 2025-10-10 10:15:51 +01:00
9baf63915c Update README to include capability setup instructions
- Added instructions for setting the `cap_net_bind_service` capability to allow binding to ports 80 and 443 after compilation.
2025-10-10 10:11:23 +01:00
fb3174f91f Add custom favicon support with loading mechanism
- Introduced a new configuration option to specify a custom favicon file.
- Implemented a function to load the favicon data, falling back to the embedded default if not provided.
- Added a handler to serve the favicon as `favicon.ico` for each hostname in the reverse proxy.
v1.0.3
2025-10-10 10:07:47 +01:00
069d804c00 Fix X-Forwarded-For header to use only the first IP in the client IP list 2025-08-21 14:53:50 +01:00
b98a7d525b Fix X-Forwarded-For header to use only the first IP in the client IP list 2025-08-21 14:49:13 +01:00
9085df44b8 Add X-Forwarded-For header and log headers in reverse proxy
- Extracted client IP using `remoteIP` and added it to `X-Forwarded-For` header.
- Added logging for request headers in the reverse proxy.
2025-08-21 14:39:50 +01:00
42deda6d06 Add RFC 7239 Forwarded header support to reverse proxy
- Introduced `appendForwardedHeader` to construct and append the RFC 7239 compliant Forwarded header.
- Updated reverse proxy and helper functions to include client, host, and protocol details in the Forwarded header.
- Improved header compatibility for applications using proxy configurations.
2025-08-21 13:47:41 +01:00
e2cbd41e56 Update logging levels for favicon and nostr JSON handlers 2025-08-21 12:57:35 +01:00
84a4105a2a Update logging levels for favicon and nostr JSON handlers 2025-08-21 12:51:11 +01:00
99e319c0be Add embedded favicon support with default fallback
- Used `embed` to include a default favicon.
- Implemented handler to serve `favicon.ico`, falling back to the embedded default if not found.
v1.0.2
2025-08-21 12:14:23 +01:00
d9899fd23e Update module path for lol to custom domain v1.0.1 2025-08-20 05:08:51 +01:00
5fa049b81f Switch module paths to custom domain and rename README file format v1.0.0 2025-08-20 05:03:34 +01:00
bf860e71b2 Enable HSTS by default in reverse proxy configuration 2025-08-20 04:02:06 +01:00
3b561bfc14 switch to go-simpler.org/env 2025-08-20 03:38:27 +01:00
b8072065f2 Fix incorrect struct tag for Certs field in runArgs 2025-08-20 03:03:42 +01:00
825420644b Add support for custom TLS certificates in reverse proxy
- Introduced `Certs` in `runArgs` to specify custom PEM-encoded certificate paths.
- Added `TLSConfig` function to configure TLS with Let's Encrypt and custom certificate support.
- Updated `setupServer` to utilize the new `TLSConfig` functionality.
2025-08-19 19:53:09 +01:00
6d9306c422 reverted to old leproxy code 2025-08-19 19:42:08 +01:00
aba3909038 Add reverse proxy boilerplate with configuration management
- Introduced the main entry point `main.go` with basic configuration loading and error handling.
- Added `config` package to handle environment variables, help printing, and default settings.
- Configured required dependencies in `go.mod` and included their checksums in `go.sum`.
- Created `.gitignore` file for common Go development scenarios.
2025-08-19 16:45:48 +01:00
66c06e063e Initial commit 2025-08-19 15:19:47 +01:00