Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

app.conf is actually an app.ini file #1770

Open
boris-smidt-klarrio opened this issue Jun 13, 2024 · 5 comments
Open

app.conf is actually an app.ini file #1770

boris-smidt-klarrio opened this issue Jun 13, 2024 · 5 comments

Comments

@boris-smidt-klarrio
Copy link

boris-smidt-klarrio commented Jun 13, 2024


It seems that the config file used in this helm chart isn't using the 'correct' extension and it actually contains a .ini .

@Vad1mo
Copy link
Member

Vad1mo commented Jun 17, 2024

@zyyw
Copy link
Collaborator

zyyw commented Jun 25, 2024

If we run sudo ./prepare --with-trivy, it outputs:

prepare base dir is set to /home/ubuntu/temp/harbor
Generated configuration file: /config/portal/nginx.conf
Generated configuration file: /config/log/logrotate.conf
Generated configuration file: /config/log/rsyslog_docker.conf
Generated configuration file: /config/nginx/nginx.conf
Generated configuration file: /config/core/env
Generated configuration file: /config/core/app.conf <------------ please check here
Generated configuration file: /config/registry/config.yml
Generated configuration file: /config/registryctl/env
Generated configuration file: /config/registryctl/config.yml
Generated configuration file: /config/db/env
Generated configuration file: /config/jobservice/env
Generated configuration file: /config/jobservice/config.yml
loaded secret from file: /data/secret/keys/secretkey
Generated configuration file: /config/trivy-adapter/env
Generated configuration file: /compose_location/docker-compose.yml
Clean up the input dir

To keep it consistent with the Harbor oss conifg. It should be app.conf.

@MinerYang
Copy link
Collaborator

Per beego doc https://github.com/beego/beedoc/blob/master/en-US/mvc/controller/config.md#default-configurations-parsing
And https://github.com/beego/beego/blob/76343e4422710373ed4838e7262c4d54524e3b94/core/config/ini.go#L56
the appConfig will be loaded correctly regardless the file name is app.conf or app.ini as long as the adapter is ini which explicitly specified in the func

@boris-smidt-klarrio
Copy link
Author

I made the suggestion of renaming the file to improve the syntax highlighting and better linting in the configmap to a .ini file.

@zyyw
Copy link
Collaborator

zyyw commented Jul 11, 2024

This app.conf is a auto-generated file and should be transparent to the end users. BTW, to keep it consistent with the Harbor oss, it might be better keep it as it is.

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

No branches or pull requests

4 participants