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

Host dashboard using OpenStack instance instead of Render #108

Closed
7 tasks done
alyssadai opened this issue Nov 8, 2023 · 5 comments
Closed
7 tasks done

Host dashboard using OpenStack instance instead of Render #108

alyssadai opened this issue Nov 8, 2023 · 5 comments
Assignees
Labels
maint:usability General improvements to product usability that are unrelated to feature prioritization.

Comments

@alyssadai
Copy link
Collaborator

alyssadai commented Nov 8, 2023

  • Create new subdomain digest.neurobagel.org (see also Rename to digest #77) NGINX config file
  • Update NGINX config to route subdomain request to appropriate port
  • Request a SSL certificate (via CertBot) to enable HTTPS support
  • Delete custom subdomain for service on Render + suspend service
  • Update Namecheap record for digest.neurobagel.org to point to fairmount IP
  • Install dependencies for and run dashboard on fairmount machine, NOT in debug mode:
    gunicorn digest.app:server -b :8050
  • Some extra config might be needed to allow large files to be processed:
    • By default, there's a 1MB limit on the request body - beyond that you get a Request Entity Too Large error
      image
    • Solution: update Nginx Configuration:

      Open your Nginx configuration file, which is usually located at /etc/nginx/nginx.conf or /etc/nginx/conf.d/default.conf. Look for the http block and add or update the client_max_body_size directive to a value that accommodates your needs. For example:

      http {
        client_max_body_size 20M;
          # Other configurations...
      }
    • This can be defined at the server block level for the digest.neurobagel.org config (since this is currently only relevant for this specific instance)
    • Refs:
@surchs surchs added this to Neurobagel Nov 8, 2023
@alyssadai alyssadai added flag:schedule Flag issue that should go on the roadmap or backlog. maint:usability General improvements to product usability that are unrelated to feature prioritization. type:maintenance labels Nov 8, 2023
@alyssadai alyssadai moved this to Backlog in Neurobagel Nov 8, 2023
@alyssadai alyssadai removed the flag:schedule Flag issue that should go on the roadmap or backlog. label Nov 8, 2023
@alyssadai alyssadai changed the title Switch to hosting and auto-deploying app using our OpenStack instance Host dashboard using OpenStack instance instead of Render Nov 13, 2023
@surchs surchs moved this from Backlog to Specify - Active in Neurobagel Nov 29, 2023
@surchs surchs moved this from Specify - Active to Specify - Done in Neurobagel Dec 4, 2023
@surchs
Copy link
Contributor

surchs commented Dec 4, 2023

@alyssadai is this already being worked on or is it more of a reminder / checklist issue?

@alyssadai alyssadai moved this from Specify - Done to Implement - Active in Neurobagel Dec 4, 2023
@alyssadai alyssadai self-assigned this Dec 4, 2023
@alyssadai
Copy link
Collaborator Author

Ah yes, I started to do some of the setup up until I encountered the Request Entity Too Large error, but forgot to move it into Implement - Active. Resuming this now.

@alyssadai
Copy link
Collaborator Author

For reviewer:

  • Try accessing https://digest.neurobagel.org
  • See nginx configuration file for digest.neurobagel.org on fairmount at /etc/nginx/sites-available/digest.neurobagel.org

@alyssadai alyssadai moved this from Implement - Active to Implement - Done in Neurobagel Dec 4, 2023
@surchs surchs moved this from Implement - Done to Review - Active in Neurobagel Dec 5, 2023
@surchs
Copy link
Contributor

surchs commented Dec 5, 2023

@alyssadai do you have a .csv that is large (e.g. > 1MB)? Otherwise this looks great and good to go 🧑‍🍳

@alyssadai
Copy link
Collaborator Author

Sent via DM for your testing! Will close this for now.

@github-project-automation github-project-automation bot moved this from Review - Active to Review - Done in Neurobagel Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maint:usability General improvements to product usability that are unrelated to feature prioritization.
Projects
Archived in project
Development

No branches or pull requests

2 participants