add config file and rework cli parsing and passing of config values#263
No reviewers
Labels
No labels
breaking
bug
build_pr_image
documentation
d̶u̶p̶l̶i̶c̶a̶t̶e̶
feature
good first issue
improvement
i̶n̶v̶a̶l̶i̶d̶
open questions
performance
refactor
research required
No project
No assignees
2 participants Notifications
Due date No due date set.
Dependencies
No dependencies set.
Reference
Codeberg/pages-server!263
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/add-config-file"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -0,0 +129,4 @@Name: "config-file",Usage: "specify the location of the config file",Aliases: []string{"config"},EnvVars: []string{"CONFIG_FILE"},add default mime type and allowd mime types
@ -0,0 +8,4 @@mainDomain = 'codeberg.page'rawDomain = 'raw.codeberg.page'allowedCorsDomains = ['fonts.codeberg.org', 'design.codeberg.org']blacklistedPaths = []defailt & allowed mime
@ -0,0 +67,4 @@}if ctx.IsSet("blacklisted-paths") {config.BlacklistedPaths = ctx.StringSlice("blacklisted-paths")}as above - I mime it
@ -0,0 +22,4 @@return nil, fmt.Errorf("%w: ACME_EAB_KID also needs ACME_EAB_HMAC to be set", ErrAcmeMissConfig)}return certificates.NewAcmeClient(pass cfg down :)
@ -3,3 +3,3 @@import "time"type SetGetKey interface {type ICache interface {add godoc
7ba8c579e081e980ce139c236081534d760d9a9dWIP: add config file and rework cli parsing and passing of config valuesto add config file and rework cli parsing and passing of config values@ -0,0 +1,11 @@ACME_API=https://acme.mock.directoryACME_ACCEPT_TERMS=truePAGES_DOMAIN=localhost.mock.directoryRAW_DOMAIN=raw.localhost.mock.directorywasnt raw removed?
@ -0,0 +5,4 @@PAGES_BRANCHES=pages,master,mainGITEA_ROOT=https://codeberg.orgPORT=4430HTTP_PORT=12348880 ... or change readme too ...
there isn't anything in the README
@ -0,0 +23,4 @@type GiteaConfig struct {Root stringToken stringLFSEnabled bool `default:"false"`default true ... as with default env var
the env var is also false
91825492a375efaae21anice