Skip to content

feat(proxy): add disable proxy sign#764

Merged
j2rong4cn merged 6 commits intomainfrom
add-disable-proxy-sign
Jul 21, 2025
Merged

feat(proxy): add disable proxy sign#764
j2rong4cn merged 6 commits intomainfrom
add-disable-proxy-sign

Conversation

@SenkjM
Copy link
Copy Markdown
Member

@SenkjM SenkjM commented Jul 20, 2025

No description provided.

@SenkjM SenkjM assigned SenkjM and unassigned SenkjM Jul 20, 2025
@SenkjM SenkjM marked this pull request as draft July 20, 2025 07:42
@j2rong4cn j2rong4cn force-pushed the add-disable-proxy-sign branch from b61d3e0 to 46446c2 Compare July 20, 2025 09:22
@SenkjM SenkjM marked this pull request as ready for review July 21, 2025 01:11
@SenkjM SenkjM requested a review from Copilot July 21, 2025 01:11
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a "disable proxy sign" feature that allows users to optionally disable signing for download proxy URLs. This provides more flexibility for proxy configurations where signing may not be necessary or desired.

  • Centralizes proxy URL generation logic into a reusable function
  • Adds a new boolean configuration option disable_proxy_sign to control signing behavior
  • Refactors WebDAV handling to use the new unified proxy URL generation approach

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
server/webdav/webdav.go Refactors WebDAV proxy handling to use centralized URL generation and removes sign import
server/handles/fsread.go Updates file reading handler to use new proxy URL generation function
server/handles/down.go Simplifies download proxy logic using centralized URL generation and removes unused imports
server/common/proxy.go Adds new GenerateDownProxyUrl function with configurable signing support
internal/op/driver.go Adds disable_proxy_sign configuration option to driver items
internal/model/storage.go Adds DisableProxySign field and renames WebdavProxy to WebdavProxyUrl for clarity
Comments suppressed due to low confidence (2)

server/common/proxy.go:145

  • [nitpick] Function name should follow Go naming conventions. Consider renaming to 'GenerateDownProxyURL' to properly capitalize the acronym 'URL'.
func GenerateDownProxyUrl(storage *model.Storage, reqPath string) string {

internal/model/storage.go:54

  • [nitpick] Method name should follow Go naming conventions. Consider renaming to 'WebdavProxyURL' to properly capitalize the acronym 'URL'.
func (p Proxy) WebdavProxyUrl() bool {

@j2rong4cn j2rong4cn merged commit 5a0d8ee into main Jul 21, 2025
8 checks passed
@j2rong4cn j2rong4cn deleted the add-disable-proxy-sign branch July 21, 2025 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants