Skip to content

how to change set(CTEST_DROP_METHOD "https") to http on production docker instance #2027

Closed

Description

@samikh2020

Apart of our infrastructure we have some instances that are unable to submit throught https - is there a way of changing the drop method to http?

As part of this ive extended the docker compose files to be open on port 443 and 8080 and updated the apache config aswell.

Activity

  1. samikh2020 commented on Feb 12, 2024

    @samikh2020
    Author

    is it possible to run the production docker instance without https?

  2. williamjallen commented on Feb 12, 2024

    @williamjallen
    Member

    You can set APP_ENV to development.

  3. samikh2020 commented on Feb 12, 2024

    @samikh2020
    Author

    Thanks @williamjallen,

    ive tried to set app_env to developement however it makes GUI not work - im able to see the top banner and login but nothing passed that - ive tried on both chrome and firefox.

    my env file looks like this:

    # See app.php in the config/ directory for a description of these variables.
    APP_NAME=CDash
    APP_ENV=development
    #APP_DEBUG=true
    APP_KEY=keMCcoZh8NaZ7jfSOGbAgicX2Ch2E9iy
    APP_URL=http://cdash-staging.team.aws.company.com
    MIX_APP_URL="${APP_URL}"
    
    # The following two variables are only used for docker compose production installations.
    SSL_CERTIFICATE_FILE=/home/ubuntu/CDash/ssl/fullchain.pem
    SSL_CERTIFICATE_KEY_FILE=/home/ubuntu/CDash/ssl/key.pem
    
    # database.php
    DB_DATABASE=cdash
    DB_PASSWORD=cdash
    
    QUEUE_CONNECTION=database
    

    and im using this command to launch the instance

    docker compose --env-file .env \
    	   -f docker/docker-compose.yml \
    	   -f docker/docker-compose.production.yml \
    	   -f docker/docker-compose.mysql.yml \
    	    up -d
    
  4. samikh2020 commented on Feb 12, 2024

    @samikh2020
    Author

    when i use https in the app_url - i do seem to resolve the GUI issues but then the set(CTEST_DROP_METHOD "https") is auto set to https also

  5. samikh2020 commented on Feb 12, 2024

    @samikh2020
    Author

    my ideal solution would be to have https on access the GUI and be able to receive HTTP submissions

  6. williamjallen commented on Feb 12, 2024

    @williamjallen
    Member

    Did you run npm run prod after switching APP_ENV to development?

  7. samikh2020 commented on Feb 12, 2024

    @samikh2020
    Author

    i destroyed the containers and volumes and launched fresh

  8. zackgalbreath commented on Feb 12, 2024

    @zackgalbreath
    Contributor

    my ideal solution would be to have https on access the GUI and be able to receive HTTP submissions

    I don't think there's currently a "built-in" way to achieve this with CDash's docker images, but in the past we've achieved this with careful use of apache RewriteRules. Let me see if I can dig up an example for you.

  9. locked and limited conversation to collaborators on Feb 12, 2024
  10. converted this issue into a discussion #2028 on Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions