• 1 Post
  • 56 Comments
Joined 3 years ago
cake
Cake day: June 8th, 2023

help-circle




  • I have AdGuard Home running on OPNSense as a local DNS with a wild card for for the ‘local domain’ pointing to Caddy

    in Caddy I have this section:

    *.<domain>.net {
    #header X-Frame-Options "SAMEORIGIN"
            tls internal
            encode gzip
            import sec-headers
            @sub1 host pve.<domain>.net
            @sub2 host kasm.<domain>.net
           ...
           handle @sub1 {
                    import sec-headers
                    reverse_proxy * https://10.1.1.11:8006/ {
                            transport http {
                                    tls_insecure_skip_verify
                            }
                    #       header_up Host {host}
                           header_up X-Real-IP {remote}
                           header_up X-Forwarded-For {remote}
                           header_up X-Forwarded-Port {server_port}
                           header_up X-Forwarded-Proto {scheme}
                    }
            }
            handle @sub2 {
                    import sec-headers
                    reverse_proxy  https://10.1.1.119/ {
                            transport http {
                                    tls_insecure_skip_verify
                            }
                    #       header_up Host {host}
                           header_up X-Real-IP {remote}
                           header_up X-Forwarded-For {remote}
                           header_up X-Forwarded-Port {server_port}
                           header_up X-Forwarded-Proto {scheme}
                    }
            }
    ...
    

  • Back up the server then work through:

    Just follow the guide https://iocaine.madhouse-project.org/documentation/3/getting-started/ Bind the iocaine service to 0.0.0.0:42069

    cat /opt/iocaine/etc/iocaine/config.d/00-server.txt.kdl 
    http-server default {
      bind "0.0.0.0:42069"
      use handler-from=default
    }
    

    expose interface to Docker (make sure not to expose it to the world).

    sudo iptables -I INPUT 4 \
      -s 172.18.0.0/16 \
      -d 172.18.0.1 \
      -p tcp --dport 42069 \
      -j ACCEPT
    

    add the interface to the proxy service in a custom/docker-compose.yml.template

    proxy:
        {{COMPOSE_CADDY_IMAGE}}
        env_file:
          - ./caddy.env
          - {{ CADDY_EXTRA_ENV }}
        volumes:
          - ./caddy/Caddyfile:/etc/caddy/Caddyfile:ro
          - caddy_data:/data
          - caddy_config:/config
        extra_hosts:
          - "host.docker.internal:172.18.0.1"
    ...
    

    add iocaine to caddy in a custom/Caddyfile.template

    {$LEMMY_HOSTNAME} {
            import caddy-common
    
            ######################################
            ########## iocaine  code ##########
            @read method GET HEAD
                    reverse_proxy @read host.docker.internal:42069 {
                    @fallback status 421
                    handle_response @fallback
            }
    ...
    

    rebuild all the docler images (at least the caddy one ./deploy.sh -f) and test

    I think that should work

    CrowdSec














  • This is because, as a simple calculation demonstrates, a case of congenital blindness and schizophrenia would be extremely rare even if there was no protective effect of blindness: if schizophrenia occurs at a rate of 0.72% in the population (McGrath et al., 2008) and congenital blindness occurs at an estimated rate of 0.03% in people born in the 1970s and 1980s (based on Robinson et al., 1987), then the joint probability of a person having both conditions, if the two are independent, would be 0.0002% or 2 out of every 1 million people. Although this is a low prevalence rate, it is equal to or higher than the rates for several other well-known conditions (e.g., Creutzfeldt-Jakob disease, hereditary spastic paraplegia, Hermansky-Pudlak Syndrome). Based on this estimated prevalence rate, in the United States alone (with a population of 311, 591, 917, as of July 2011, according the US census), there should be approximately 620 congenitally blind people with schizophrenia. When cases of blindness with an onset in the first year of life (i.e., early blindness) are taken into account, the percentage would be larger. Therefore, it is remarkable that in over 60 years, and with several investigations [including several before DSM-III (1980) when criteria for schizophrenia were broader than at present], not a single case of a C/E blind schizophrenia patient has been reported.

    https://www.frontiersin.org/journals/psychology/articles/10.3389/fpsyg.2013.00157/full