国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
| server { | |
| # Redirect yoursite.com to www.yoursite.com | |
| server_name yoursite.com; | |
| rewrite ^(.*) http://www.yoursite.com$1 permanent; | |
| } | |
| server { | |
| # Tell nginx to handle requests for the www.yoursite.com domain | |
| server_name www.yoursite.com; |
| git config --global https.proxy http://127.0.0.1:1080 | |
| git config --global https.proxy https://127.0.0.1:1080 | |
| git config --global --unset http.proxy | |
| git config --global --unset https.proxy | |
| npm config delete proxy |
| #!/bin/bash | |
| # Run in go using - | |
| # <exec command="bash"> | |
| # <arg>-c</arg> | |
| # <arg>curl -s https://gist.githubusercontent.com/ketan/2866a236596636311d64/raw/ansi-color-test.sh | bash</arg> | |
| # </exec> | |
| echo "<script>console.log('42')</script>" |
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
| [ | |
| { | |
| "id": "d240e1be-38aa-4356-88b8-d1febb48d95e", | |
| "name": "色色资源站", | |
| "uri": "https://www.emiao026.com", | |
| "httpApi": "http://sscj8.com/inc/api.php", | |
| "httpsApi": "http://sscj8.com/inc/sapi.php", | |
| "type": "综合性资源" | |
| }, | |
| { |
| #!/usr/bin/env bash | |
| # NETWORK | |
| PROXY="$1" | |
| # COLOR SCHEMA | |
| COLOR_HINT=36m | |
| COLOR_WARNING=31m | |
| # DIRECTORY |