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

docker-socket-proxy: move installation of app_api to containers.json … #5062

Closed
wants to merge 1 commit into from

Conversation

szaimen
Copy link
Collaborator

@szaimen szaimen commented Jul 29, 2024

…and nextcloud_exec_commands

…and nextcloud_exec_commands

Signed-off-by: Simon L. <szaimen@e.mail.de>
@szaimen szaimen added 3. to review Waiting for reviews enhancement New feature or request labels Jul 29, 2024
@szaimen szaimen modified the milestones: next, v9.4.0 Jul 29, 2024
Comment on lines -826 to -830
php /var/www/html/occ app:update app_api
fi
else
if [ "$REMOVE_DISABLED_APPS" = yes ] && [ -d "/var/www/html/custom_apps/app_api" ]; then
php /var/www/html/occ app:remove app_api
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think this is a problem, but the update and delete functionality is not offered by nextcloud_exec_commands.

Copy link
Collaborator

Choose a reason for hiding this comment

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

With the addition of this option, it would be possible to manage the required applications more precisely.
containers-schema.json

"nextcloud_applications": {
  "type": "array",
  "items": {
    "type": "string",
    "pattern": "^\\w+$"
  }
},

If you think it might be good, I can add installation and activation with this option.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

... and delete functionality is not offered by nextcloud_exec_commands.

ah good point. that is why I didnt use it for that in the past. Thanks for reminding me :)

If you think it might be good, I can add installation and activation with this option.

I think this is a big overengineered for now but thanks for the idea :)

@szaimen szaimen closed this Jul 30, 2024
@szaimen szaimen deleted the enh/noid/move-dsp branch July 30, 2024 11:27
@szaimen szaimen removed this from the next milestone Jul 30, 2024
@szaimen
Copy link
Collaborator Author

szaimen commented Aug 2, 2024

btw @docjyJ if you are looking for things to do or improve regarding the CCs, I have this list of things I think would be useful: #3889

@docjyJ
Copy link
Collaborator

docjyJ commented Aug 2, 2024

Thanks!

I'm working on Stalwart and the 9.0 update. I just deployed my AIO instance on the RK3588, and I'll be migrating to Stalwart soon.

Maybe add a way to edit the default configuration (eg: use your own certificate, use another subdomain...).

It would be nice to have a perfect solution for beginners but powerful for advanced users (at their own risk).

@docjyJ
Copy link
Collaborator

docjyJ commented Aug 2, 2024

Also do you have some time to take a look at the aio-stalwart PRs?

It's good to have feedback, especially from someone with experience.

@szaimen
Copy link
Collaborator Author

szaimen commented Aug 2, 2024

I'm working on Stalwart and the 9.0 update. I just deployed my AIO instance on the RK3588, and I'll be migrating to Stalwart soon.

all right, cool

Maybe add a way to edit the default configuration (eg: use your own certificate, use another subdomain...).

This could be done with a CC like the caddy container but will not be added for the AIOs default caddy one, mostly due to maintainability concerns.

It would be nice to have a perfect solution for beginners but powerful for advanced users (at their own risk).

This is fine with CCs but not for the default stack. Since adding options will also compllicate things for beginners.

Also do you have some time to take a look at the aio-stalwart PRs?

It's good to have feedback, especially from someone with experience.

What exactly do you want me to look into there?

@docjyJ
Copy link
Collaborator

docjyJ commented Aug 2, 2024

This is fine with CCs but not for the default stack. Since adding options will also compllicate things for beginners.

I was thinking about a file to rewrite default rules. Especially to use a custom proxy (instead of Caddy CC) or use a custom domain. This is the only thing that the container manages with admin IDs and logs.

What exactly do you want me to look into there?

Just to review these features. By asking for review via github feature. If you agree.

@szaimen
Copy link
Collaborator Author

szaimen commented Aug 2, 2024

I was thinking about a file to rewrite default rules. Especially to use a custom proxy (instead of Caddy CC) or use a custom domain. This is the only thing that the container manages with admin IDs and logs.

Hm... can you describe your use case a bit more in detail? So basically please point out why you would need this?

Just to review these features. By asking for review via github feature. If you agree.

I can probably review changes on github that you do but I cannot test updates for stalwart unfortunately since my test instance does not allow to test stalwart because I am unfortunately not in control over the dns confguration that the server uses...

@docjyJ
Copy link
Collaborator

docjyJ commented Aug 2, 2024

Here example of my idea : https://github.com/docjyJ/aio-stalwart/blob/dev/manager/start.sh

Users can decide to disable some logics if they prefer to manage by themselves.

Some use cases I see:

  • Use own certificates.
  • Disable admin account or change passwords <==== important
  • Use POP without IMAP
  • Use an alternative directory (ldap for example) <==== important
  • Change database format

In the future, it could allow creating a Nextcloud / Stalwart user synchronization by simply activating a line in a file.

@szaimen
Copy link
Collaborator Author

szaimen commented Aug 2, 2024

I see, looks interesting! Do you have an example how a user would adjust these settings? Going into the container and then adjusting the settings in a file for example?

@docjyJ
Copy link
Collaborator

docjyJ commented Aug 2, 2024

It would be in a file /opt/stalwart-mail/config/nc-aio-config.toml:

skip-secure-check = false
manage.binding.mail = true
manage.binding.caddy-web = true
manage.storage.data = true
manage.storage.directory = true
manage.log.file = true
manage.log.stdout = true
manage.admin = true
manage.certificate = true

@szaimen
Copy link
Collaborator Author

szaimen commented Aug 2, 2024

Looks cool! I mean if you want to add and support this, in your stalwart container feel free to! :)

@szaimen
Copy link
Collaborator Author

szaimen commented Aug 2, 2024

Anotjer option would be to add an env file that gets sourced inside start.sh into the volume. Then you dont need a custom logic for getting and setting env. Wdyt about this idea?

@docjyJ
Copy link
Collaborator

docjyJ commented Aug 2, 2024

Yes, maybe better

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants