OVM comand line way to change port and web listen server gui address

  • i check omv-env list variables, and i want to know how can i change and redeploy the web nginx redefinition of the OVM 6 and OVM 7 but using command line


    i mean before get web access setup the port and address of the web server of nginx from 80 to 8080 and server name so then:


    • setup only using command line non interactive
    • change the port from 80 to 8080 of the nginx setup deploy
    • change the servername of the nginx setup deploy
    • change the server hostname

    i try to play but found such problems:


    • commands do not have any manpages
    • oficial documentation is pretty minimal and miss several things
    • forum have several outdated commands and setup are only using one server
  • There is no interaction mode.


    Can you tell me (no matter the way we use) how can i change in noninteractive way the port number that OMV web interface shows to the admin? in "#/system/workbench" section of the web interface? and the server name at "#/network/general"


    please? must be a way to! hacking is the base of the tech evolution!

    • Official Post

    I have already given you lots of tips on how to do this in my previous post. Please don't expect me to take you by the hand and waste my time implementing your requirements.


    Use the omv-confdbadm to get the data model you want to modify. You can find some hints here. Use jq or any other tool to modify the JSON and push it back via omv-confdbadm. The datamodel schemas can be found here. After that deploy the services you have modified via omv-salt command.


    With your announced changes and plugins that you want to write, you should be familiar with the inner workings of OMV, otherwise it won't work. :/

    • Official Post

    hacking is the base of the tech evolution!

    Then figure it out. That is how hacking works.

    Can you tell me (no matter the way we use) how can i change in noninteractive way the port number that OMV web interface shows to the admin? in "#/system/workbench" section of the web interface? and the server name at "#/network/general"

    He did. Use omv-confdbadm with the proper arguments (no, I'm not looking them up) and then omv-salt deploy run nginx

    omv 7.5.0-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.15 | compose 7.3.2 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.9


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • hi i foun that inside OMV scripts there is a config.port variable.. that is used just before the listen_params


    .. and ... listen_params are taken from environment variable OMV_NGINX_SITE_WEBGUI_LISTEN_PARAMS .. so my question then .. ther is a environment variable for config.port ???

    • Official Post

    ther is a environment variable for config.port ???

    No because port is an entry in the OMV database.


    Why are you trying to automate all of this? Is it for commercial use?

    omv 7.5.0-1 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.15 | compose 7.3.2 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.9


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Why are you trying to automate all of this? Is it for commercial use?

    i asked about the iso.. developer response an anwers that makes sense!


    Quote

    i do not want to make it too easy for companies to use OMV in their products.


    i support the same.. i neither want this.. but i want to make an iso (of course i neither and never reveal nothing to help any stupid company)


    BUT: i want to help people that uses linux nativelly and uses only linux at home .. mostly kids and geeks that uses debian.. also to improve documentation i must to know posibilities.. currently this will help me to automate the procedure to setup multisite for server configs: multisite nginx and other web server by port change and proxy reverse with lighttpd


    i currently manage and works but there are too much gui steps and i like to do all in hidden commands cos also have the same thought, I don't want any windos user with 4 clicks to come and do the work that cost me or you guys so do with so much effort.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!