1. 08 2月, 2015 2 次提交
    • gateway: attempt to resolve hostname to ipfs path · 084cdc3e
      This allows someone to host a static site by pointing a TXT record at their
      content in IPFS, and a CNAME record at an IPFS gateway.
      
      Note that such a setup technically violates RFC1912 (section 2.4; "A CNAME
      record is not allowed to coexist with any other data."), but tends to work in
      practice.
      
      We may want to consider changing the DNS->IPFS resolution scheme to allow this
      scenario to be RFC-compliant (e.g. store the mapping on a well-known subdomain
      to allow CNAME records on the domain itself).
      
      License: MIT
      Signed-off-by: 's avatarKevin Wallace <kevin@pentabarf.net>
      Kevin Wallace 提交于
    • corehttp: ServeOption supports chaining muxes · fbd76ebb
      Each option now additionally returns the mux to be used by future options. If
      every options returns the mux it was passed, the current behavior is unchanged.
      
      However, if the option returns an a new mux, it can mediate requests to handlers
      provided by future options:
      
          return func(n *core.IpfsNode, mux *http.ServeMux) (*http.ServeMux, error) {
            childMux := http.NewServeMux()
            mux.Handle("/", handlerThatDelegatesToChildMux)
            return childMux, nil
          }
      
      License: MIT
      Signed-off-by: 's avatarKevin Wallace <kevin@pentabarf.net>
      Kevin Wallace 提交于
  2. 07 2月, 2015 4 次提交
  3. 06 2月, 2015 9 次提交
  4. 05 2月, 2015 18 次提交
  5. 04 2月, 2015 7 次提交