Skip to content

HTTPS with Nginx Possible? #1398

Answered by jlpoolen
jlpoolen asked this question in Q&A
Jul 3, 2024 · 2 comments · 9 replies
Discussion options

You must be logged in to vote

The problem I encountered, CORS errors, has been resolved. The problem was that my JSON style file specified a URL for the tiles to point directly to the martin server, when, it should have directed the inquiry through nginx using HTTPS.

I modified my JSON stylesheet for the HTTPS test to:

jlpoole@debian1:/usr/share/nginx/html/test$ date;head -n 14 martin_style_debian1.json |nl|tail -n 6
Thu Jul  4 07:35:22 AM PDT 2024
     9    "sources": {
    10      "jlptiles": {
    11        "type": "vector",
    12        "scheme": "xyz",
    13        "url": "http://debian1/jlptiles/"
    14      },
jlpoole@debian1:/usr/share/nginx/html/test$ 

And when I now make an HTTPS call to the testing pag…

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
9 replies
@nyurik
Comment options

@jlpoolen
Comment options

@nyurik
Comment options

@jlpoolen
Comment options

Answer selected by jlpoolen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants