ARPA-H-FEAST / management

Repository for project management
0 stars 0 forks source link

Set up mgpc apache server #45

Open rykahsay opened 2 weeks ago

rykahsay commented 2 weeks ago

Please set up the domain https://mgpc.biochemistry.gwu.edu/ and have apache run. I will create a web application container that will be mapped with the main apache port

dacianstremtan commented 2 weeks ago

The apache is already setup on the mgpc.biochemistry.gwu.edu. Currently it is running rstudio on this url. Please confirm with Anelia that is okay to take over the main domain URL. Rstudio can be served from /rstudio location Dacian

pmcneely commented 4 days ago

@rykahsay @dacianstremtan It looks like there are two issues on the MGPC server:

  1. HTTPD is running (ps aux | grep httpd), but I don't see any configuration for ports to be open. (I don't have access to lsof etc, but best I can see, there's no web service available and no configurations in /etc/http/)
  2. The docker daemon isn't running (and maybe isn't set to run automatically under systemd?):
    ┌  pmcneely@💻 mgpc  ~ 
    └❯ $ docker ps
    Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
rykahsay commented 4 days ago

@dacianstremtan ... can you please let us know if we can use GW authentication in a web application I am developing? In other words, does GW has API gateway (just like Google and Facebook) that can be used by other web applications?

dacianstremtan commented 4 days ago

@pmcneely docker is was installed by not configured to start automatically. I have configured the service and add your account to the docker group. You should be able to run docker commands without sudo. A logout/login cycle might be required if you are already logged in.

dacianstremtan commented 4 days ago

@rykahsay GW does not have an API gateway that I am aware of. We can use GW login for user using SAML intergration or OAUTH 2.0 with the Microsoft Azure login page.

dacianstremtan commented 4 days ago

@rykahsay @dacianstremtan It looks like there are two issues on the MGPC server:

1. `HTTPD` is running (`ps aux | grep httpd`), but I don't see any configuration for ports to be open. (I don't have access to `lsof` etc, but best I can see, there's no web service available and no configurations in `/etc/http/`)

2. The docker daemon isn't running (and maybe isn't set to run automatically under `systemd`?):
┌  pmcneely@💻 mgpc  ~ 
└❯ $ docker ps
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

The only current service is being served is Rstudio server and the proxy is written in /etc/httpd/conf.d/ssl.conf

Screenshot from 2024-10-21 11-41-16

..... RewriteEngine on

RedirectMatch permanent ^/rstudio$ /rstudio/

RewriteCond %{HTTP:Upgrade} =websocket RewriteRule /(.) ws://localhost:8787/$1 [P,L] RewriteCond %{HTTP:Upgrade} !=websocket RewriteRule /(.) http://localhost:8787/$1 [P,L] ProxyPass / http://localhost:8787/ ProxyPassReverse / http://localhost:8787/

pmcneely commented 4 days ago

@dacianstremtan Thanks! Comments/questions on 2 & 3 below.

You should be able to run docker commands without sudo. A logout/login cycle might be required if you are already logged in.

Confirmed - thank you!

We can use GW login for user using [...] OAUTH 2.0 with the Microsoft Azure login page

This would be extraordinarily nice to integrate with our application moving forward. I have created a Django container that currently handles our OAuth2.0 login/logout lifecycle. I would love to add the GWU OAuth2.0 lifecycle in parallel if possible. Shall I open a new ticket?

The only current service is being served is Rstudio server [...]

Can you configure Apache with a new, open port (either to feast.mgpc.biochemistry.gwu.eduormgpc.biochemistry.gwu.edu/feast` or something like that? @rykahsay Do we have lab best practice for handling DNS routing for funded projects?

pmcneely commented 4 days ago

@dacianstremtan Just to provide an update, we would definitely prefer feast.mgpc.biochemistry.gwu.edu if we still can get it :)

dacianstremtan commented 4 days ago

We can do a DNS name such as: feast.biochemistry.gwu.edu

Dacian

În lun., 21 oct. 2024 la 12:22, Pat McNeely @.***> a scris:

@dacianstremtan https://github.com/dacianstremtan Just to provide an update, we would definitely prefer feast.mgpc.biochemistry.gwu.edu if we still can get it :)

— Reply to this email directly, view it on GitHub https://github.com/ARPA-H-FEAST/management/issues/45#issuecomment-2427145097, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIRPEFBJ3VYQKNE5RNSRKALZ4US5PAVCNFSM6AAAAABPQL43U6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMRXGE2DKMBZG4 . You are receiving this because you were mentioned.Message ID: @.***>

pmcneely commented 4 days ago

@dacianstremtan Thank you for the offer, Dacian. Per Anelia and Raja, we would like to stick with feast.mgpc.biochemistry.gwu.edu for now.

Thank you again!