This howto is valid for Betanet on Ubuntu or Debian
You have to install some dependencies. In debian / ubuntu run:
import React from 'react' | |
import assign from 'react/lib/Object.assign' | |
import Route from 'route-parser' | |
export default class Router extends React.Component { | |
constructor(props) { | |
super(props) | |
let routes = Object.keys(this.props.routes).map((route) => { | |
return { route : new Route(route), handler : this.props.routes[route] } | |
}) |
<key>CFBundleURLTypes</key> | |
<array> | |
<dict> | |
<key>CFBundleURLName</key> | |
<string>Dat Link</string> | |
<key>CFBundleURLSchemes</key> | |
<array> | |
<string>dat</string> | |
</array> | |
</dict> |
# RS256 | |
# private key | |
openssl genrsa -out rs256-4096-private.rsa 4096 | |
# public key | |
openssl rsa -in rs256-4096-private.rsa -pubout > rs256-4096-public.pem | |
# ES512 | |
# private key | |
openssl ecparam -genkey -name secp521r1 -noout -out ecdsa-p521-private.pem | |
# public key |
upstream docker-mirror-upstream { | |
server upstream.example.com; | |
} | |
proxy_cache_path /var/lib/docker-mirror/cache levels=1:2 max_size=10g inactive=48h keys_zone=cache:10m; | |
server { | |
listen 80 default_server; | |
listen 443 ssl default_server; |