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

NGINX setup with https #1

Open
pheyvaer opened this issue Feb 4, 2020 · 4 comments
Open

NGINX setup with https #1

pheyvaer opened this issue Feb 4, 2020 · 4 comments

Comments

@pheyvaer
Copy link

pheyvaer commented Feb 4, 2020

Hi,

If we want to run the services behind an NGINX and enable https, what do we write in https://github.com/peta-pico/nanopub-services/blob/master/docker-compose.override.yml.template?

version: '2'
services:
  server:
    environment:
      - NPS_PUBLIC_URL=http://server.np.YOUR.SERVER.DOMAIN/
  ldf:
    environment:
      - BASEURL=http://ldf.np.YOUR.SERVER.DOMAIN/
  grlc:
    environment:
      - GRLC_SERVER_NAME=grlc.np.YOUR.SERVER.DOMAIN

Do we put http or https in environment? For server this seems to work with https, but for ldf I get a 502. But I'm not 100% sure whether the 502 is related to http vs https.

@tkuhn
Copy link
Member

tkuhn commented Feb 4, 2020

You should then use https instead of http in these environment variables.

This 502 error seems unrelated, but I am not 100% sure either. I haven't tested this with https.

So all the other services work except for the ldf one?

@tkuhn
Copy link
Member

tkuhn commented Feb 4, 2020

Maybe something is wrong in the Nginx configuration? Like a port number mismatch?

@tkuhn
Copy link
Member

tkuhn commented Feb 5, 2020

I see now that your server is up and running at server.nanopubs.restdesc.org, but both grlc and ldf seem to have problems connecting to the virtuoso instance. Maybe the http in http://virtuoso:8890/sparql in the main docker-compose.yml is causing this problem. Though I cannot really imagine how this could be a problem, but maybe replacing all occurences of http:// with https:// in docker-compose.yml is worth a try?

@pheyvaer
Copy link
Author

pheyvaer commented Feb 5, 2020

I didn't change the port numbers. I tried curl localhost:7882 which should be the port of the LDF server, but I get curl: (52) Empty reply from server. This should normally already give the LDF startpage, right?

I'm trying now with replacing all http with https in docker-compose.yml.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants