-
Notifications
You must be signed in to change notification settings - Fork 40
Add GITEA_CUSTOM configuration in customization section #111
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check the resolution of custom/
dir
GITEA_CUSTOM=/srv/gitea/mycustom ./gitea web | ||
``` | ||
|
||
**Note** that by default Gitea will use the `custom` folder in the current working directory. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm afraid at the moment it'll be the custom
folder in the directory containing the gitea
binary unless GITEA_WORK_DIR
env is set, in which case that's the directory used to resolve relative paths like custom/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right, I didn't be aware that GITEA_WORK_DIR variable exists.
That's why it should be better to create a specific subsection in this page to explain how GITEA_WORK_DIR and GITEA_CUSTOM works.
Or, in another case: create a specific page to list all available environment variable for GITEA?
What's your opinion about that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes please add a section about env variables
I think a section about environment variables will be great,
then you could reference those env variables at relevant places.
|
LGTM |
LGTM |
Fix go-gitea/gitea#1452 about missing GITEA_CUSTOM explanation in documentation