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

How can I temporarily enable script creation? #5

Open
zadigus opened this issue Aug 23, 2022 · 1 comment
Open

How can I temporarily enable script creation? #5

zadigus opened this issue Aug 23, 2022 · 1 comment

Comments

@zadigus
Copy link

zadigus commented Aug 23, 2022

On the usual nexus installations, we can enable script creation by setting

nexus.scripts.allowCreation=true

in the file nexus.properties and then reboot the server.

I was not able to do the same on the Jelastic installation. How can I achieve that?

@zadigus
Copy link
Author

zadigus commented Sep 24, 2022

One way of doing it would be to change a bit the environment architecture:

  • put an nginx load-balancer in front of the nexus server
  • make sure no request can be made to the cp nodes from the outside world
  • make sure only the nginx load-balancer can send requests to the cp nodes
  • allow scripts creation in the nexus settings
  • write an nginx rule to disable the nexus script endpoint

Then, the scripts are kind of "disabled". In order to temporarily enable them, we could just have a manifest that disables the nginx rule.

However, I would be surprised that there is no more direct solution by changing some properties of the nexus server directly.

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

1 participant