The turtle moves


  • Discourse touched me in a no-no place

    @accalia said:

    @PJH i'll do some digging and see if i can figure out a way to do this for what.thedailywtf.com

    Non-docker stuff is easy because there's nothing coming along some time later and overwriting your config:

    [pjh@sofa ~]$ curl shabble.co.uk -I
    HTTP/1.1 200 OK
    Date: Tue, 17 Mar 2015 12:38:50 GMT
    Server: Apache
    X-Clacks-Overhead: GNU Terry Pratchett
    X-Powered-By: PleskLin
    Connection: close
    Content-Type: text/html
    
    [pjh@sofa ~]$
    

    It's just whether there's a meta-config for ngix:

    [pjh@sofa ~]$ curl pjh.homeip.net -I
    HTTP/1.1 200 OK
    Server: nginx
    Date: Tue, 17 Mar 2015 12:40:00 GMT
    Content-Type: text/html; charset=utf-8
    Connection: keep-alive
    Vary: Accept-Encoding
    Status: 200 OK
    X-Frame-Options: SAMEORIGIN
    X-XSS-Protection: 1; mode=block
    X-Content-Type-Options: nosniff
    Set-Cookie: destination_url=http%3A%2F%2Fpjh.homeip.net%2F; path=/
    Set-Cookie: _forum_session=cyt4UnBId2hBTDM4Z002OE9JM2pkWW1rdkNLc0Iwa0hQNXltcmUxRjY1SGt4aUxiZEcvT1FTNEg2MlYyMFNFcjA3Ylh5WjhDMEc4RzhjZ2FzWGxrR3c9PS0tSXlMbTNURnhhL1ozNWJEMXliQUN0UT09--9be5f3bab972431924b3e9189054b7e752697b2f; path=/; HttpOnly
    Set-Cookie: __profilin=p%3Dt; path=/
    X-Request-Id: 0bf2f662-5b80-480c-927b-8de18fe5838b
    X-Runtime: 0.177509
    X-UA-Compatible: IE=edge
    
    [pjh@sofa ~]$
    
    

  • Java Dev

    How about 2cc of mouse blood and a fresh egg?



  • I have some stuffed birds I can give to the wizards to get their croquet mallets but I can't remember what they were for now



  • Have @apapadimoulis add this to app.yml:

    ## Remember, this is YAML syntax - you can only have one block with a name
    run:
      - exec: echo "Beginning of custom commands"
    
      # A man's not dead while his name is still spoken.
      - replace:
         filename: "/etc/nginx/conf.d/discourse.conf"
         from: /sendfile on;/
         to: |
           add_header X-Clacks-Overhead "GNU Terry Pratchett";
           sendfile on;
    

  • Discourse touched me in a no-no place

    @riking said:

    Have @apapadimoulis add this to app.yml:

    There are some instructions missing which you're assuming everyone knows, but they don't.

    [root@desktop discourse]# ./launcher restart app
    6a51ba2835ab6189b31aa918f1df68db5fba14ecfff60fedf8d8a4936ccc84f0
    cid found, ensuring container is started
    6a51ba2835ab6189b31aa918f1df68db5fba14ecfff60fedf8d8a4936ccc84f0
    [root@desktop discourse]# curl localhost -I
    HTTP/1.1 200 OK
    Server: nginx
    Date: Tue, 17 Mar 2015 15:54:40 GMT
    Content-Type: text/html; charset=utf-8
    Connection: keep-alive
    Vary: Accept-Encoding
    Status: 200 OK
    X-Frame-Options: SAMEORIGIN
    X-XSS-Protection: 1; mode=block
    X-Content-Type-Options: nosniff
    Set-Cookie: destination_url=http%3A%2F%2Flocalhost%2F; path=/
    Set-Cookie: _forum_session=cFhCZTBCL2wweSszMGRHZGFoN2ROQmg4cUtIMWp6VDVxRGlHa1VMZTh5aGlhWTBhR1lSeHdKaUxOYnpubnM4UEF5K0d3QktpY2NkOStkL2VxK25Rb0E9PS0tenUybGNvMENJQ1FHait4RWlWUWw1QT09--d291421df1556d9dce4d53b2a28dc8d87d0f6025; path=/; HttpOnly
    X-Request-Id: 0f8ae853-3e0d-4bdb-9411-2d302de0e42d
    X-Runtime: 0.086039
    X-UA-Compatible: IE=edge
    
    [root@desktop discourse]#
    

    ./launcher restart app doesn't seem to make it take effect. Is a rebuild required, along with the associated update of everything else, which we're trying to avoid, required?



  • It's a change that touches something other than env, so yes, a rebuild is required.

    It's live on https://forum.riking.org



  • WTF is GNU Terry Pratchett?
    Is it something like fortune, but with book quotes?


  • ♿ (Parody)

    It's based on something that happened in the books on the telegraph / internet analog there:



  • I pasted the explanation in the meta post



  • I see!
    That sounds like a nice idea.


Log in to reply