jwilder/nginx-proxy
启动nginx反向代理:
docker run --name nginx -d -p 80:80 -v /var/run/docker.sock:/tmp/docker.sock -t --restart=always jwilder/nginx-proxy
再启动其他容器,如:
docker run -e VIRTUAL_HOST=yourdomain.com -d tutum/apache-php
#!/bin/bash | |
# | |
# This is a script for writing the latest Arch Linux ARM files to a SD Card | |
# | |
# Based on this tutorial | |
# http://archlinuxarm.org/platforms/armv7/broadcom/raspberry-pi-2 | |
# | |
# Usage: | |
# sudo sh BuildArchLinuxARM.sh [your sd card here] | |
# |
<!-- lang: shell --> | |
systemProp.http.proxyHost=www.proxyhost.org | |
systemProp.http.proxyPort=1080 | |
systemProp.http.proxyUser=userid | |
systemProp.http.proxyPassword=password | |
systemProp.http.nonProxyHosts=*.nonproxyrepos.com|localhost | |
systemProp.https.proxyHost=www.proxyhost.org | |
systemProp.https.proxyPort=1080 | |
systemProp.https.proxyUser=userid |
jwilder/nginx-proxy
启动nginx反向代理:
docker run --name nginx -d -p 80:80 -v /var/run/docker.sock:/tmp/docker.sock -t --restart=always jwilder/nginx-proxy
再启动其他容器,如:
docker run -e VIRTUAL_HOST=yourdomain.com -d tutum/apache-php
首先删除用户目录下的.gnupg
然后mv /etc/apt/trusted.gpg.d /etc/apt/trusted.gpg.d.old
最后可以重新导入秘钥sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys
# This file only needs to list configuration variables that deviate | |
# from the default values. See /usr/share/doc/polipo/examples/config.sample | |
# and "polipo -v" for variables you can tweak and further information. | |
logSyslog = true | |
logFile = "/var/log/polipo/polipo.log" | |
socksParentProxy = "127.0.0.1:1080" | |
socksProxyType = socks5 | |
chunkHighMark = 50331648 |
#! /bin/bash | |
# 账号密码 | |
USER_NAME="[email protected]" | |
PASSWORD="user_password" | |
# 如果想使用邮件客户端打开可以替换,默认打开浏览器。 | |
MAIL_SOFTWARE="xdg-open $LATEST_MAIL_LINK" | |
# 获取 XML | |
XML=$(curl -su $USER_NAME:$PASSWORD "https://mail.google.com/mail/feed/atom" | tr -d '\n' | sed 's/&/\&/g' | sed 's:</entry>:\n:g') |
// Your domain name | |
const MY_DOMAIN = 'note.example.com' | |
// Website language | |
const LANG = 'en' | |
// Favicon url | |
const FAVICON_URL = 'https://example.com/favicon.ico' | |
// Your config page link |