Configuring CORS for q2galaxy docker

Hello everybody,

I am very interested in being able to view QZV files inside my Galaxy Docker using the "view at" feature. I understand that for this to work, the Galaxy instance must be accessible via an HTTPS connection, this step is already done. I have more trouble with the CORS configuration part.
Would someone have an example to give me on how to modify my docker-compose.yml below to correctly include a CORS configuration and unblock the "view at" function that links to the q2view tool to view my QZVs without having to download them?

I'm using the q2galaxy docker version 2022.2 on a ubuntu server.

Many thanks to all the people who will try to help :slight_smile:

version: '3'
services:
  galaxy:
    container_name: metageno_galaxy
    image: quay.io/qiime2/q2galaxy:latest
    ports:
      - "8484:443"
      - "29002:9002"
      - "28021:21"
      - "28022:22"
    volumes:
      - "/home/administrateur/prod/application/galaxy_metageno/gd_tools_galaxy:/galaxy-central/tools/gd_tools"
      - "/home/administrateur/prod/application/galaxy_metageno/export_galaxy/:/export/"
      - "/home/administrateur/prod/application/galaxy_metageno/ressources:/ressources"
      - "/home/administrateur/prod/application/galaxy_metageno/ftp_galaxy:/export/ftp"

    networks:
      - reverse_nginx_network
    environment:
      VIRTUAL_HOST: galaxy-metageno.XXXX.com
      VIRTUAL_PORT: 443
      VIRTUAL_PROTO: https
      PYTHONIOENCODING: utf-8
      USE_HTTPS: "True"

networks:
  reverse_nginx_network:
    external: true
1 Like

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.