Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-12241

Fix http -> https redirect in squash services

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      squash-dash, squash-bokeh and squash-api kubernetes services only accepts traffic on https port then the nginx config to redirect http -> https does not work.

        Attachments

          Activity

          Hide
          afausti Angelo Fausti added a comment - - edited

          Now it is working

          $ curl -I http://squash.lsst.codes
          HTTP/1.0 301 Moved Permanently
          Server: nginx/1.13.5
          Date: Tue, 17 Oct 2017 20:25:21 GMT
          Content-Type: text/html
          Content-Length: 185
          Location: https://squash.lsst.codes/
          X-Cache: MISS from 172.19.134.2
          X-Cache-Lookup: MISS from 172.19.134.2:3128
          Via: 1.0 172.19.134.2:3128 (squid/2.6.STABLE14)
          Connection: close
          

          $ curl -I http://squash-api.lsst.codes
          HTTP/1.0 301 Moved Permanently
          Server: nginx/1.13.5
          Date: Tue, 17 Oct 2017 20:32:35 GMT
          Content-Type: text/html
          Content-Length: 185
          Location: https://squash-api.lsst.codes/
          X-Cache: MISS from 172.19.134.2
          X-Cache-Lookup: MISS from 172.19.134.2:3128
          Via: 1.0 172.19.134.2:3128 (squid/2.6.STABLE14)
          Connection: close
          

          $ curl -I http://squash-bokeh.lsst.codes
          HTTP/1.0 301 Moved Permanently
          Server: nginx/1.13.5
          Date: Tue, 17 Oct 2017 20:21:57 GMT
          Content-Type: text/html
          Content-Length: 185
          Location: https://squash-bokeh.lsst.codes/
          X-Cache: MISS from 172.19.134.2
          X-Cache-Lookup: HIT from 172.19.134.2:3128
          Via: 1.0 172.19.134.2:3128 (squid/2.6.STABLE14)
          Connection: close
          

          Show
          afausti Angelo Fausti added a comment - - edited Now it is working $ curl -I http: //squash.lsst.codes HTTP/ 1.0 301 Moved Permanently Server: nginx/ 1.13 . 5 Date: Tue, 17 Oct 2017 20 : 25 : 21 GMT Content-Type: text/html Content-Length: 185 Location: https: //squash.lsst.codes/ X-Cache: MISS from 172.19 . 134.2 X-Cache-Lookup: MISS from 172.19 . 134.2 : 3128 Via: 1.0 172.19 . 134.2 : 3128 (squid/ 2.6 .STABLE14) Connection: close $ curl -I http: //squash-api.lsst.codes HTTP/ 1.0 301 Moved Permanently Server: nginx/ 1.13 . 5 Date: Tue, 17 Oct 2017 20 : 32 : 35 GMT Content-Type: text/html Content-Length: 185 Location: https: //squash-api.lsst.codes/ X-Cache: MISS from 172.19 . 134.2 X-Cache-Lookup: MISS from 172.19 . 134.2 : 3128 Via: 1.0 172.19 . 134.2 : 3128 (squid/ 2.6 .STABLE14) Connection: close $ curl -I http: //squash-bokeh.lsst.codes HTTP/ 1.0 301 Moved Permanently Server: nginx/ 1.13 . 5 Date: Tue, 17 Oct 2017 20 : 21 : 57 GMT Content-Type: text/html Content-Length: 185 Location: https: //squash-bokeh.lsst.codes/ X-Cache: MISS from 172.19 . 134.2 X-Cache-Lookup: HIT from 172.19 . 134.2 : 3128 Via: 1.0 172.19 . 134.2 : 3128 (squid/ 2.6 .STABLE14) Connection: close
          Show
          afausti Angelo Fausti added a comment - https://github.com/lsst-sqre/squash-dash/pull/3 https://github.com/lsst-sqre/squash-api/pull/6 https://github.com/lsst-sqre/squash-bokeh/pull/6

            People

            Assignee:
            afausti Angelo Fausti
            Reporter:
            afausti Angelo Fausti
            Watchers:
            Angelo Fausti
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Jenkins

                No builds found.