Commit Graph
280 Commits
Author SHA1 Message Date
UUBulb 4ce74d9fd8 hide install_host for guest (#1029) 2025-03-15 18:01:23 +08:00
UUBulb d0f69c424e generate agent_secret for old users (#1021) 2025-03-08 18:47:42 +08:00
UUBulb f110ff761a fix: ignore the duration of out-of-bound rules (#1019) 2025-03-07 20:23:18 +08:00
UUBulb 0992a85446 fix: oauth2 config not loaded (#1018) 2025-03-04 20:28:22 +08:00
UUBulb 4d3393271b fix: config fields not generated on first startup (#1016)
* fix: config fields not generated on first startup

* cleanup

* fix reference

* replace yaml module

* remove duplicated fields

* remove yaml.v3 as a direct dependency

* update dependency

* chore
2025-03-03 19:02:25 +08:00
naiba a723893a44 fix: range data point 2025-03-02 16:57:24 +08:00
UUBulb a26337acb2 fix service (#1015) 2025-03-02 16:36:57 +08:00
JSker9 cf65101fac feat: add configurable JWT timeout setting (#1014) 2025-03-02 15:37:46 +08:00
UUBulb af55fae652 improve check for offline rules (#1013)
* improve check for offline rules

* bug fixes

* update dependencies

* fix error wrap

* fix offline check

* improve readability
2025-03-02 15:37:21 +08:00
UUBulb 043d6c4097 feat: update to go1.24 & support listening https (#1002)
* feat: support listening https

* refactor

* modernize

* support snake case in config

* more precise control of config fields

* update goreleaser config

* remove kubeyaml

* fix: expose agent_secret

* chore
2025-02-28 22:02:54 +08:00
UUBulb 54ca4ca0b6 fix: ConfigCache not copied affer server updates (#1008)
* fix: ConfigCache not copied affer server updates

* fix: server list not updated when dispatching tasks

* improve

* reuse logic
2025-02-26 20:48:54 +08:00
UUBulb c0fee50776 fix: possible redirect url inconsistency (#1003) 2025-02-24 20:53:11 +08:00
UUBulb ea068d4db1 refactor: simplify server & service manipulation (#993)
* refactor: simplify server & service manipulation

* update

* fix

* update for nat, ddns & notification

* chore

* update cron

* update dependencies

* use of function iterators

* update default dns servers
2025-02-21 23:08:12 +08:00
UUBulb eeb96caf4d feat: batch set server config (#983)
* feat: batch set server config

* run in parallel

* fix route

* fix

* return some information

* fix order
2025-02-04 11:25:49 +08:00
UUBulb b75a49c3c6 feat: edit server config online (#980)
* feat: edit server config online

* clean

* refactor

* generate template

* fix deadlocks

* fix
2025-01-31 13:33:53 +08:00
UUBulb 2a6206f1a9 ddns: allow overriding domains per configuration (#979) 2025-01-30 12:19:40 +08:00
UUBulb ec6b9b9b43 feat: option to force authorization for vistor routes (#971) 2025-01-29 19:27:57 +08:00
naiba 22d7a88318 feat: disable nat 2025-01-21 22:23:15 +08:00
UUBulb ff4fd31ec4 small improvements (#958)
* small improvements

* fix: return empty iterator if no json present

* use time.Tick

* changes
2025-01-19 21:22:00 +08:00
naiba 67e08695c8 fix: typo 2025-01-01 16:14:19 +08:00
UUBulb 3d591fae78 fix: struct tag (#932)
* fix: struct tag

* fix: struct tag

* fix: strings conversion

* do not write anything after redirection

* fix table

* fix select
2024-12-31 23:09:58 +08:00
UUBulb 2d03c61f38 fix: oauth2 redirect url not consistent (#930)
* fix: oauth2 redirect url not consistent

* only use one redirect uri

* feat: allow to disable password authentication

* generate translation template

* update error

* redirect

* query
2024-12-31 22:29:29 +08:00
naiba 8b9afbf39c feat: 绑定 oauth2 2024-12-28 23:50:59 +08:00
naiba 0364632ebc fix: 修复因采样不足导致的告警 2024-12-28 00:29:58 +08:00
naiba 42ef1bcffd improve: check performance 2024-12-28 00:07:07 +08:00
naiba 223f72ef68 fix: rule check 2024-12-27 00:07:44 +08:00
naiba 39b82222dd chore: fix index bug & upgrade frontend 2024-12-26 23:52:44 +08:00
UUBulb d70cfe9ee9 bug fixes (#918)
* bug fixes

* fix for backward compatibility

* fix init

* cleanup

* possible fix

* optimize permission check

* Revert "possible fix"

This reverts commit 003f1bbb2aa368aade6702e6019922b7f4871a39.
2024-12-26 23:38:40 +08:00
naiba 72e3406ac0 feat: upgrade frontend 2024-12-25 21:02:54 +08:00
UUBulb 453c6cdb49 chore: simplify some steps (#912) 2024-12-25 20:24:13 +08:00
UUBulb fa30df0320 feat: support id query for "list" apis (#908)
* feat: support id query for "list" apis

* gosec
2024-12-24 23:23:01 +08:00
naiba 0b54aa070d feat: block user manual & upgrade frontend 2024-12-23 19:50:41 +08:00
naiba f0e1f89903 feat: upgrade frontend 2024-12-23 00:40:38 +08:00
naiba ea43234797 fix: create user form 2024-12-22 15:51:37 +08:00
naiba 6dea3e19d2 feat: list & block online users 2024-12-22 01:08:07 +08:00
UUBulb dc0132c9aa feat: user roles (#852)
* [WIP] feat: user roles

* update

* update

* admin handler

* update

* feat: user-specific connection secret

* simplify some logics

* cleanup

* update waf

* update user api error handling

* update waf api

* fix codeql

* update waf table

* fix several problems

* add pagination for waf api

* update permission checks

* switch to runtime check

* 1

* cover?

* some changes
2024-12-22 00:05:41 +08:00
naiba 09ad9b30da feat: add online user count 2024-12-21 10:59:05 +08:00
naiba c9056eaa44 refactor: fallback agent ip to connecting ip 2024-12-19 23:21:31 +08:00
naiba 7d689862d8 fix: rule snapshot 2024-12-19 23:21:15 +08:00
naiba bbf0f96b8d feat: update language handling and frontend template versions 2024-12-15 17:07:53 +08:00
UUBulb 8dd7c609f5 fix: custom_nameservers should be dns_servers (#581) 2024-12-13 22:25:20 +08:00
naiba d0b5549cdb feat: enhance template configuration and update README for translation status 2024-12-10 22:27:06 +08:00
Moraxyc 67190459f8 Refactor: Load UserTemplates from embedded yaml file (#575)
* Refactor: Load UserTemplates from embedded yaml file

* feat: add version field to UserTemplates

* refactor: use shell script to fetch frontends

* chore: add *-dist to .gitignore

* refactor: rename to FrontendTemplates

BREAKING CHANGE: This commit changes the `user_templates` filed
in the communication json between backend and the admin-frontend.

Keep user config.yml `user_template` filed.
2024-12-10 21:57:20 +08:00
naiba 29d0d2eb3c feat: 优化 GeoIP 更新逻辑 2024-12-07 11:06:42 +08:00
UUBulb 20e1240d3c UserTemplate GitHub -> Repository (#564) 2024-12-06 23:38:20 +08:00
naiba dd964f3b26 feat: multi user template 2024-12-06 23:19:28 +08:00
UUBulb 4ddad9ea00 fix service api (#556)
* fix service api

* update ServiceResponseItem

* fix: ddns lock
2024-12-05 21:00:02 +08:00
Moraxyc 5a706b05c7 feat: add listen_host (#550) 2024-12-05 17:01:21 +08:00
naiba 4861b3e013 feat: refactor grpc keepalive 2024-12-05 00:11:34 +08:00
naiba b59094fd19 Revert "feat: grpc keepalive"
This reverts commit b484fe53f0.
2024-12-04 22:46:02 +08:00