Skip to content
This repository has been archived by the owner on Apr 14, 2024. It is now read-only.

Accesslist (client_ip and trusted_proxies added) #62

Merged
merged 30 commits into from
Dec 26, 2023
Merged

Accesslist (client_ip and trusted_proxies added) #62

merged 30 commits into from
Dec 26, 2023

Conversation

Monviech
Copy link
Owner

This one will be probably the last major feature update for a while.

  • Access List functionality has been added.
  • Each domain and subdomain can have its own access list added, which restricts access to it via a static list of IP addresses
  • Useful if you want certain domains to only be accessable internally, or externally via a CDN or specific sources.
  • Only static IP addresses are supported.
  • There have been a few small bug fixes and readability fixes, nothing major though.
  • There is one change in functionality, in v1.2.0 the empty handles have been placed last automatically. This functionality had to be removed in v1.3.0 in favor of nested access lists. You have to order your handles in the right order yourself in the GUI. If you only had empty handles before this change doesn't affect you.

Monviech and others added 30 commits December 23, 2023 16:32
Added access list to model
Added DialogAccessList
Added Access List Bootgrid section
Dialog for Access List added
Total refactor:
- Functionality that has been lost is that empty handles will always be placed last. Handles are written in the order the user inputs them in the GUI.
- Added Macros to make Template shorter and more maintainable
- Added AccessList functionality.
removed enabled checkbox for access list since there is no way to implement that correctly into the template. Otherwise the whole block disappears.
Deleted enabled function for AccessLists
Deleted enabled toggle for AccessLists
Added Trusted Proxies accesslist to general settings.
Added Trusted Proxies field.
- Add Javascript for trusted Proxies dropdown
- Changed reload on Apply to only the ServiceControlUI, not the whole page (to prevent the advanced options from collapsing.)
Small constraint to handle added. Handles have to start at least with / when they're not empty, or Caddy won't start.
Add reload for the ServiceControlUI after pressing Apply.
Added small help text that informs the user that handle order is important.
Added trusted proxies to template generation
Explained new Access List and Trusted Proxies features.
Fixed small typos and version number
@Monviech Monviech linked an issue Dec 26, 2023 that may be closed by this pull request
@Monviech Monviech merged commit d18b9f8 into main Dec 26, 2023
@Monviech Monviech linked an issue Dec 26, 2023 that may be closed by this pull request
@Monviech Monviech deleted the accesslist branch December 26, 2023 22:05
@Monviech Monviech self-assigned this Dec 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add trusted_proxies option to global Enable client_ip (ACL) support for Handles
1 participant