ACME default storage not using work-path setting #11483

Open
opened 2025-11-02 09:39:05 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @EniacMlezi on GitHub (Aug 18, 2023).

Description

Looks like the ACME 'https' directory is just created in the curren directory, not accounting for the work-path settings.

e5b3f53d36/cmd/web_acme.go (L58)

Gitea Version

1.20.2

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

In an azure VM packeged by Bitnami

Database

None

Originally created by @EniacMlezi on GitHub (Aug 18, 2023). ### Description Looks like the ACME 'https' directory is just created in the curren directory, not accounting for the work-path settings. https://github.com/go-gitea/gitea/blob/e5b3f53d36b69ce73cf2870cddd13cd15a799424/cmd/web_acme.go#L58 ### Gitea Version 1.20.2 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? In an azure VM packeged by Bitnami ### Database None
GiteaMirror added the type/bug label 2025-11-02 09:39:05 -06:00
Author
Owner

@lunny commented on GitHub (Aug 24, 2023):

If setting.AcmeLiveDirectory is a relative path, the parent path should be DataPath

@lunny commented on GitHub (Aug 24, 2023): If `setting.AcmeLiveDirectory` is a relative path, the parent path should be DataPath
Author
Owner

@yp05327 commented on GitHub (Mar 26, 2024):

If setting.AcmeLiveDirectory is a relative path, the parent path should be DataPath

It seems that we didn't do that.
image
image

@yp05327 commented on GitHub (Mar 26, 2024): > If setting.AcmeLiveDirectory is a relative path, the parent path should be DataPath It seems that we didn't do that. ![image](https://github.com/go-gitea/gitea/assets/18380374/738f5f76-89b1-49ca-9a4f-e8dc62b75e7b) ![image](https://github.com/go-gitea/gitea/assets/18380374/9d4e8873-361b-43db-8d11-4f551bcac7a3)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#11483