Task list of Hongmeng Wang blog
- Apply domain
- Apply server
- Apply https certificate
- Build blog with docker-compose/wordpress
- Write post
- Continous
version: "3" | |
services: | |
mysql: | |
image: "mysql:5.7" | |
container_name: blog-mysql | |
environment: | |
MYSQL_ROOT_PASSWORD: mysql | |
MYSQL_DATABASE: blog | |
MYSQL_USER: blog | |
MYSQL_PASSWORD: blog |
Task list of Hongmeng Wang blog
rpm -aq | grep yum|xargs rpm -e --nodeps
wget http://mirror.centos.org/centos/6.0/os/i386/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm
wget http://mirror.centos.org/centos/6.0/os/i386/Packages/yum-metadata-parser-1.1.2-16.el6.x86_64.rpm
wget http://mirror.centos.org/centos/6.0/os/i386/Packages/yum-3.2.29-69.el6.centos.noarch.rpm
wget http://mirror.centos.org/centos/6.0/os/i386/Packages/yum-plugin-fastestmirror-1.1.30-30.el6.noarch.rpm
I thought something before, when I check nginx's log, I found a wired hostname.
After checking, I think out website was mirrored.
I think they parsed their domain by CNAME to our domain, and we don't do any host check at that time.
To prevent being mirrored again, I add host check configuration in nginx.conf
set $flag 0;
I registed my domain "wanghongmeng.com" on Aliyun, and applied free EC2 server for one year on AWS.
After building my blog on AWS, I set A parse to the server's IP of AWS.
But yesterday I received email from Aliyun which said that my server was not in Aliyun after they checking, it was not allowed, I have to miggrate my blog server to Aliyun, otherwise they will undo my authority number.
After thinking about this, for saving money(Aliyun is not free for one year), I solved it by the way below:
version: "3" | |
services: | |
mysql: | |
image: "mysql:5.7" | |
environment: | |
MYSQL_ROOT_PASSWORD: "xxx" | |
MYSQL_DATABASE: "xxx" | |
MYSQL_USER: "xxx" | |
MYSQL_PASSWORD: "xxx" | |
command: mysqld --character-set-server=utf8 --collation-server=utf8_general_ci --init-connect='SET NAMES UTF8;' --innodb-flush-log-at-trx-commit=0 |
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
image: | |
# This chart is compatible with different images, please choose one | |
repository: datadog/agent # Agent6 | |
# repository: datadog/dogstatsd # Standalone DogStatsD6 | |
tag: latest # Use 6.3.2-jmx to enable jmx fetch collection | |
pullPolicy: Always | |
## It is possible to specify docker registry credentials | |
## See https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod | |
# pullSecrets: | |
# - name: regsecret |
apiVersion: install.istio.io/v1alpha2 | |
kind: IstioControlPlane | |
spec: | |
hub: docker.io/istio | |
tag: 1.4.3 | |
defaultNamespace: istio-system | |
# Traffic management feature | |
trafficManagement: | |
enabled: true |