├── .gitignore ├── nginx-grpc ├── nginx │ ├── ssl │ │ ├── nginx.conf │ │ ├── ssl.sh │ │ ├── server.csr │ │ ├── server.crt │ │ ├── ca.crt │ │ ├── server.pam │ │ ├── ca.key │ │ └── server.key │ ├── Dockerfile │ ├── timezone │ │ └── localtime │ ├── vhosts │ │ └── grpc.conf │ └── nginx.conf ├── grpc │ └── Dockerfile └── docker-compose.yml ├── mongoDB ├── mongodb │ ├── ssl │ │ ├── ca.srl │ │ ├── generate.sh │ │ ├── mongodb.csr │ │ ├── mongodb.crt │ │ ├── ca.pem │ │ ├── ca.key │ │ ├── mongodb.key │ │ └── mongodb.pem │ ├── timezone │ │ └── localtime │ ├── Dockerfile │ ├── .env │ ├── setup │ │ └── setup.sh │ ├── script │ │ └── create_user.js │ └── docker-compose.yml ├── replica-set │ ├── .env │ ├── build │ │ ├── timezone │ │ │ └── localtime │ │ ├── Dockerfile │ │ ├── entrypoint │ │ │ └── docker-entrypoint.sh │ │ └── key │ │ │ └── mongo-keys │ └── docker-compose.yml └── .gitignore ├── nginx-php-fpm ├── public_html │ ├── info.php │ └── index.html ├── conf.d │ └── default.conf └── docker-compose.yml ├── blackbox-exporter ├── blackboxdata │ ├── Dockerfile │ └── config │ │ └── blackbox.yml └── docker-compose.yml ├── nginx-tuning-best-performance ├── public_html │ └── index.html ├── docker-compose.yml └── conf │ └── nginx.conf ├── nginx-ssl-letsencrypted ├── public_html │ └── index.html ├── dhparam │ └── dhparam-2048.pem ├── docker-compose.yml └── conf.d │ └── default.conf ├── flask-apps ├── requirements.txt ├── docker-compose.yaml ├── Dockerfile └── apps.py ├── nginx-proxy ├── docker-compose.yml ├── ssl │ ├── dhparam4096.pem │ ├── example.key │ └── bundle.crt └── conf.d │ ├── default.conf │ ├── metrics.conf │ ├── deployment.conf │ └── monitoring.conf ├── cadvisor └── docker-compose.yml ├── jenkins └── docker-compose.yml ├── tableau-server └── docker-compose.yml ├── prometheus-grafana-alertmanager ├── docker-compose.yml ├── alertmanagerdata │ └── config.yml └── prometheusdata │ ├── prometheus.yml │ └── prometheus.rules ├── README.md └── LICENSE /.gitignore: -------------------------------------------------------------------------------- 1 | *.env 2 | .DS_Store -------------------------------------------------------------------------------- /nginx-grpc/nginx/ssl/nginx.conf: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /mongoDB/mongodb/ssl/ca.srl: -------------------------------------------------------------------------------- 1 | D9C4A9D9BB674CE9 2 | -------------------------------------------------------------------------------- /nginx-php-fpm/public_html/info.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /nginx-grpc/nginx/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM nginx:alpine 2 | COPY ./timezone/localtime /etc/localtime -------------------------------------------------------------------------------- /mongoDB/replica-set/.env: -------------------------------------------------------------------------------- 1 | REPLICASET_NAME=grpc 2 | 3 | ROOT_USER=admin 4 | ROOT_PASSWD=admin123 -------------------------------------------------------------------------------- /mongoDB/.gitignore: -------------------------------------------------------------------------------- 1 | /basic/data/* 2 | /replicaset/db01/* 3 | /replicaset/db02/* 4 | /replicaset/db03/* -------------------------------------------------------------------------------- /nginx-php-fpm/public_html/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |

www.dimzrio.com

4 | 5 | -------------------------------------------------------------------------------- /blackbox-exporter/blackboxdata/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM prom/blackbox-exporter 2 | COPY ./config/blackbox.yml /config/blackbox.yml 3 | -------------------------------------------------------------------------------- /mongoDB/mongodb/timezone/localtime: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dimzrio/docker-compose/HEAD/mongoDB/mongodb/timezone/localtime -------------------------------------------------------------------------------- /nginx-grpc/nginx/timezone/localtime: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dimzrio/docker-compose/HEAD/nginx-grpc/nginx/timezone/localtime -------------------------------------------------------------------------------- /nginx-tuning-best-performance/public_html/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |

www.dimzrio.com

4 | 5 | -------------------------------------------------------------------------------- /mongoDB/mongodb/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM mongo:4.0 2 | COPY ./timezone/localtime /etc/localtime 3 | RUN apt-get -y update && apt-get -y install net-tools nano -------------------------------------------------------------------------------- /mongoDB/replica-set/build/timezone/localtime: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/dimzrio/docker-compose/HEAD/mongoDB/replica-set/build/timezone/localtime -------------------------------------------------------------------------------- /nginx-ssl-letsencrypted/public_html/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |

This is an example nginx with letencrypte/h1> 4 | 5 | -------------------------------------------------------------------------------- /mongoDB/mongodb/.env: -------------------------------------------------------------------------------- 1 | # Superuser 2 | ROOT_USER=admin 3 | ROOT_PASSWD=admin123 4 | 5 | # Read & Write user 6 | USER=dimzrio 7 | USER_PASSWD=dimzrio123 -------------------------------------------------------------------------------- /mongoDB/mongodb/setup/setup.sh: -------------------------------------------------------------------------------- 1 | mongo -u $ROOT_USER -p $ROOT_PASSWD --eval "var USER = '$USER'; var USER_PASSWD = '$USER_PASSWD';" /script/create_user.js -------------------------------------------------------------------------------- /flask-apps/requirements.txt: -------------------------------------------------------------------------------- 1 | click==8.1.3 2 | Flask==2.2.2 3 | importlib-metadata==5.0.0 4 | itsdangerous==2.1.2 5 | Jinja2==3.1.2 6 | MarkupSafe==2.1.1 7 | Werkzeug==2.2.2 8 | zipp==3.10.0 9 | -------------------------------------------------------------------------------- /flask-apps/docker-compose.yaml: -------------------------------------------------------------------------------- 1 | version: '3.5' 2 | 3 | services: 4 | apps: 5 | build: . 6 | restart: always 7 | image: flask_apps:latest 8 | ports: 9 | - "8080:8080" 10 | -------------------------------------------------------------------------------- /flask-apps/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM python:3 2 | 3 | COPY ["apps.py", "requirements.txt", "./"] 4 | 5 | RUN pip install -r requirements.txt 6 | RUN adduser --disabled-password apps 7 | USER apps 8 | 9 | EXPOSE 8080 10 | 11 | CMD [ "python", "apps.py" ] 12 | -------------------------------------------------------------------------------- /flask-apps/apps.py: -------------------------------------------------------------------------------- 1 | from flask import Flask 2 | 3 | app = Flask(__name__) 4 | 5 | @app.route("/") 6 | def hello_world(): 7 | return "

Welcome to dimzrio tutorials!

" 8 | 9 | if __name__ == '__main__': 10 | app.run(host='0.0.0.0', port='8080') -------------------------------------------------------------------------------- /mongoDB/mongodb/script/create_user.js: -------------------------------------------------------------------------------- 1 | // Get db 2 | db = db.getSiblingDB("admin") 3 | 4 | // Create read & write user 5 | db.createUser( 6 | { 7 | user: USER, 8 | pwd: USER_PASSWD, 9 | roles: [ 10 | { role: "readWrite", db: "admin" } 11 | ] 12 | } 13 | ); -------------------------------------------------------------------------------- /mongoDB/replica-set/build/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM mongo:4.1 2 | RUN mkdir /data/logs 3 | RUN mkdir /data/entrypoint/ 4 | RUN mkdir /data/key/ 5 | COPY ./timezone/localtime /etc/localtime 6 | COPY ./key/mongo-keys /data/key/mongo-keys 7 | RUN chown -R mongodb:mongodb /data/ 8 | RUN apt-get -y update && apt-get -y install net-tools iputils-ping -------------------------------------------------------------------------------- /blackbox-exporter/docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: '2' 2 | 3 | services: 4 | blackbox-exporter: 5 | container_name: blackbox-exporter 6 | restart: always 7 | image: prom/blackbox-exporter:v.1.0.0 8 | ports: 9 | - "9115:9115" 10 | volumes: 11 | - ./blackboxdata/config:/config 12 | command: -config.file=/config/blackbox.yml 13 | -------------------------------------------------------------------------------- /mongoDB/replica-set/build/entrypoint/docker-entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | sleep 10 4 | 5 | mongo --host primary < mongodb.pem -------------------------------------------------------------------------------- /blackbox-exporter/blackboxdata/config/blackbox.yml: -------------------------------------------------------------------------------- 1 | modules: 2 | http_post: 3 | prober: http 4 | timeout: 5m 5 | http: 6 | method: POST 7 | headers: 8 | Content-Type: application/json 9 | body: '{}' 10 | http_get: 11 | prober: http 12 | timeout: 5m 13 | http: 14 | method: GET 15 | protocol: "tcp4" 16 | preferred_ip_protocol: "ip4" 17 | tcp_connect: 18 | prober: tcp 19 | timeout: 5s 20 | icmp: 21 | prober: icmp 22 | timeout: 5s 23 | -------------------------------------------------------------------------------- /nginx-grpc/nginx/vhosts/grpc.conf: -------------------------------------------------------------------------------- 1 | upstream personalservice { 2 | server rpc:50051; 3 | } 4 | 5 | server { 6 | listen 8080 ssl http2; 7 | 8 | # SSL 9 | ssl_certificate /etc/nginx/ssl/server.crt; 10 | ssl_certificate_key /etc/nginx/ssl/server.pam; 11 | 12 | # Routing 13 | location /model.personalService { 14 | grpc_pass grpc://personalservice; 15 | } 16 | 17 | error_page 500 502 503 504 /50x.html; 18 | location = /50x.html { 19 | root /usr/share/nginx/html; 20 | } 21 | } -------------------------------------------------------------------------------- /nginx-php-fpm/conf.d/default.conf: -------------------------------------------------------------------------------- 1 | server { 2 | listen 80; 3 | server_name _; 4 | root /public_html; 5 | 6 | location / { 7 | index index.php index.html; 8 | } 9 | 10 | location ~* \.php$ { 11 | fastcgi_pass php:9000; 12 | fastcgi_index index.php; 13 | include fastcgi_params; 14 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 15 | fastcgi_param PATH_INFO $fastcgi_path_info; 16 | } 17 | } -------------------------------------------------------------------------------- /nginx-grpc/docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: '3.4' 2 | 3 | services: 4 | web: 5 | build: 6 | context: ./nginx/ 7 | ports: 8 | - "8080:8080" 9 | volumes: 10 | - ./nginx/nginx.conf:/etc/nginx/nginx.conf 11 | - ./nginx/vhosts/:/etc/nginx/conf.d/ 12 | - ./nginx/ssl/:/etc/nginx/ssl/ 13 | restart: always 14 | 15 | rpc: 16 | build: 17 | context: ./grpc/ 18 | network: host 19 | ports: 20 | - "50051:50051" 21 | restart: always 22 | 23 | -------------------------------------------------------------------------------- /mongoDB/mongodb/docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: '3.4' 2 | 3 | services: 4 | mongodb: 5 | build: 6 | context: . 7 | ports: 8 | - "27017:27017" 9 | command: --auth --sslMode requireSSL --sslCAFile /data/ssl/ca.pem --sslPEMKeyFile /data/ssl/mongodb.pem 10 | volumes: 11 | - ./db:/data/db 12 | - ./ssl:/data/ssl/ 13 | - ./script/:/script/ 14 | - ./setup/:/docker-entrypoint-initdb.d/ 15 | environment: 16 | - MONGO_INITDB_ROOT_USERNAME=admin 17 | - MONGO_INITDB_ROOT_PASSWORD=admin123 18 | env_file: 19 | - .env 20 | restart: always -------------------------------------------------------------------------------- /nginx-php-fpm/docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: '3' 2 | 3 | services: 4 | web: 5 | image: nginx:alpine 6 | ports: 7 | - "8080:80" 8 | volumes: 9 | - ./public_html:/public_html 10 | - ./conf.d:/etc/nginx/conf.d 11 | - /etc/localtime:/etc/localtime 12 | networks: 13 | - nginxphp 14 | 15 | php: 16 | image: php:7.1.11-fpm-alpine 17 | volumes: 18 | - ./public_html:/public_html 19 | expose: 20 | - 9000 21 | networks: 22 | - nginxphp 23 | 24 | networks: 25 | nginxphp: -------------------------------------------------------------------------------- /nginx-tuning-best-performance/docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: "3" 2 | 3 | services: 4 | web: 5 | image: nginx:alpine 6 | ports: 7 | - "8080:80" 8 | volumes: 9 | - ./public_html:/public_html 10 | - ./conf/nginx.conf:/etc/nginx/nginx.conf 11 | ulimits: 12 | nproc: 65535 13 | nofile: 14 | soft: 65535 15 | hard: 65535 16 | sysctls: 17 | net.core.somaxconn: 65536 18 | net.ipv4.ip_local_port_range: 1024 65535 19 | net.ipv4.tcp_fin_timeout: 1 20 | 21 | 22 | -------------------------------------------------------------------------------- /tableau-server/docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: "3" 2 | 3 | volumes: 4 | tableau_data: 5 | external: false 6 | 7 | services: 8 | tableau: 9 | container_name: tableau-server 10 | image: 11 | restart: always 12 | user: tableau 13 | ports: 14 | - "8080:8080" 15 | - "8850:8850" 16 | environment: 17 | - TABLEAU_USERNAME="admin" 18 | - TABLEAU_PASSWORD="tableau" 19 | - TSM_REMOTE_UID=1010 20 | - TSM_REMOTE_USERNAME="tsm" 21 | - TSM_REMOTE_PASSWORD="" 22 | - LICENSE_KEY="XXXXXXXXXXXX" 23 | volumes: 24 | - tableau_data:/var/opt/tableau -------------------------------------------------------------------------------- /nginx-grpc/nginx/nginx.conf: -------------------------------------------------------------------------------- 1 | user nginx; 2 | worker_processes auto; 3 | 4 | error_log /var/log/nginx/error.log warn; 5 | pid /var/run/nginx.pid; 6 | 7 | 8 | events { 9 | worker_connections 1024; 10 | } 11 | 12 | http { 13 | include /etc/nginx/mime.types; 14 | default_type application/octet-stream; 15 | 16 | log_format main '$remote_addr - $remote_user [$time_local] "$request" ' 17 | '$status $body_bytes_sent "$http_referer" ' 18 | '"$http_user_agent" "$http_x_forwarded_for"'; 19 | 20 | access_log /var/log/nginx/access.log main; 21 | 22 | sendfile on; 23 | tcp_nopush on; 24 | 25 | keepalive_timeout 65; 26 | 27 | gzip on; 28 | 29 | include /etc/nginx/conf.d/*.conf; 30 | } 31 | -------------------------------------------------------------------------------- /nginx-ssl-letsencrypted/docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: '3.4' 2 | 3 | services: 4 | web: 5 | image: nginx:1.14.2-alpine 6 | restart: always 7 | volumes: 8 | - ./public_html:/public_html 9 | - ./conf.d:/etc/nginx/conf.d/ 10 | - ./dhparam:/etc/nginx/dhparam 11 | - ./certbot/conf/:/etc/nginx/ssl/ 12 | - ./certbot/data:/usr/share/nginx/html/letsencrypt 13 | ports: 14 | - 80:80 15 | - 443:443 16 | 17 | certbot: 18 | image: certbot/certbot:latest 19 | command: certonly --webroot --webroot-path=/usr/share/nginx/html/letsencrypt --email rio@dimasrio.com --agree-tos --no-eff-email -d centz.dimasrio.com 20 | volumes: 21 | - ./certbot/conf/:/etc/letsencrypt 22 | - ./certbot/logs/:/var/log/letsencrypt 23 | - ./certbot/data:/usr/share/nginx/html/letsencrypt -------------------------------------------------------------------------------- /nginx-proxy/ssl/dhparam4096.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN DH PARAMETERS----- 2 | MIICCAKCAgEAzLNM7TGtK0mJ+qaBV3pXOyc7UvDG5IcCZls1HZKXZ+fIq9b/zvj8 3 | fM87jT0IXMyiKuDW6XkYux1fYHc7acmfZKxpqUOiyEOynDHjbiqIt2oGQNKcxNSv 4 | aLru/rOtZ/EBZtuc3wNMFiWDoynxyeJ2v5ibkl16JdAPykTiBYEAFGfj9YC0ff+R 5 | ki2MPd9gZip4INZT8Hj84mB6E0hjyotmqg6KceyH+c61yjk0QGKaZImD2AvNk6jG 6 | z7du6tHxoFEWtg1cO8wnIABTQCaw7h2Hj35RjTE6F8+4yFHhDZlnGBRK9Km+zXES 7 | WP4trdUctNsZH4dGAk64CCc514kyjO5+HPrPXcEtNwV7sR+qbD1AXkYkyUA+wVrH 8 | TJcgsFqUdIYEaQZ/Tm5NTdGmKqvgGppB+hxLg+rHFisgX9CgSCNUuRIE6rAI441L 9 | de1ls8OAszW7ZtCpACBYb+NiTGdlthLkSo5vVGAxeAIARdE0s1CU86kePtN46sg0 10 | /26kR8MBf+jV4AgVw57nlDlVhZl2Vr/72GTQZxt8Sj/bgHYSI8wO2OiEFejW3wM4 11 | Q+j4ODRsS4FDfjeYUQkCmdk5haOzMUsTS8jPIJp9m4t8PypfE03gEVzwwhHlKmw6 12 | n/KJ4JcAAjrw7ClFfmf8MqACRbaW/6YoVVzZly0lVrEJYdhSzyYGBUsCAQI= 13 | -----END DH PARAMETERS----- 14 | -------------------------------------------------------------------------------- /nginx-proxy/conf.d/default.conf: -------------------------------------------------------------------------------- 1 | server { 2 | listen 80; 3 | listen 443 ssl http2; 4 | server_name 128.199.146.146; 5 | 6 | if ($scheme = http) { 7 | return 301 https://$server_name$request_uri; 8 | } 9 | 10 | ssl_protocols TLSv1 TLSv1.1 TLSv1.2; 11 | ssl_certificate /etc/nginx/ssl/bundle.crt; 12 | ssl_certificate_key /etc/nginx/ssl/futuready.key; 13 | ssl_dhparam /etc/nginx/ssl/dhparam4096.pem; 14 | ssl_session_timeout 5m; 15 | ssl_session_cache shared:TLS:10m; 16 | ssl_ciphers EECDH+ECDSA+AESGCM:EECDH+aRSA+AESGCM:EECDH+ECDSA+SHA512:EECDH+ECDSA+SHA384:EECDH+ECDSA+SHA256:ECDH+AESGCM:ECDH+AES256:DH+AESGCM:DH+AES256:RSA+AESGCM:!aNULL:!eNULL:!LOW:!RC4:!3DES:!MD5:!EXP:!PSK:!SRP:!DSS; 17 | ssl_prefer_server_ciphers on; 18 | 19 | location / { 20 | root /usr/share/nginx/html; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /mongoDB/mongodb/ssl/mongodb.csr: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE REQUEST----- 2 | MIICWTCCAUECAQAwFDESMBAGA1UEAwwJbG9jYWxob3N0MIIBIjANBgkqhkiG9w0B 3 | AQEFAAOCAQ8AMIIBCgKCAQEAxfHbE0jEIFsyvsR3HdzuBHKiisYoZ2sqM70SqhMY 4 | Y0GaqGrMo3VSy6uAmneH2VyA+AL21Ctg8XMLURVUuANKTuGCZPI3at2EIKr5tzSA 5 | cL24wc2M05Eu4D+6kCbV4Zxn8JNYGeI6U4OkOdAWCYv9Lt6+798PBa5jV0BAGsZy 6 | MUzAUvQGiADzbgmCBhvhOSY9xy0roqFkGiggeGlpXXLUZKKXNLX2sH81D2UsM/lJ 7 | qohuKD15NR6qQ29S8mmJTY2KrbPeZE/zqNIXpJXeOmphYwDblOnIexKMthRmDbqc 8 | 2vwgh/SHeonrsXMW96ZvMw58hI0aHisO0ODcDBD/w+R/FwIDAQABoAAwDQYJKoZI 9 | hvcNAQELBQADggEBADyxhCe7kOU23jW+J9oQbz1SrSxAfvngivdDrL9geS8QJD75 10 | +OhXtw4gQzsMiWFyCKAvvDdc55jNNXqKFKnO/ztHK1oYvS/w3zqBaGHIiWDvGVkh 11 | FlDUzUqZDH9P7vSfXIG9u7Rk0Aj4EEvjkjeL5G2duq9h+lRHOXGrEbQHsj4n/bOm 12 | QDIJtTmQD6kJx6Ugg6C2kKNWTrGy9iK2JyQNmGelpkNagzYbL6poyWU+Y7OOEd5y 13 | mpcW2t8vjG1YhLCe2mOEnDH+pTPWzDsWzLORLSbAFcG/LW0Roy+LB1Dyg18HOa/4 14 | NYMPW49NYNrC6siykgUgD2Mco1E7e0JX+l5JPoc= 15 | -----END CERTIFICATE REQUEST----- 16 | -------------------------------------------------------------------------------- /nginx-grpc/nginx/ssl/ssl.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | server_cn=localhost 4 | passwd=Ex4mple 5 | 6 | # Step 1 - Generate CA (ca.crt) + key (ca.key) 7 | openssl genrsa -passout pass:${passwd} -des3 -out ca.key 4096 8 | openssl req -passin pass:${passwd} -new -x509 -days 365 -key ca.key -out ca.crt -subj "/CN=${server_cn}" 9 | 10 | # Step 2 - Generate Server Private key (server.key) 11 | openssl genrsa -passout pass:${passwd} -des3 -out server.key 4096 12 | 13 | # Step 3 - Generate a certificate signin request from CA (server.csr) 14 | openssl req -passin pass:${passwd} -new -key server.key -out server.csr -subj "/CN=${server_cn}" 15 | 16 | # Step 4 - Generate the certificate with ca we created (it's called self signing) - (server.crt) 17 | openssl x509 -req -passin pass:${passwd} -days 365 -in server.csr -CA ca.crt -CAkey ca.key -set_serial 01 -out server.crt 18 | 19 | # Step 5 - Convert the server certificate to *.pam (server.pam) - usable by gRPC 20 | openssl pkcs8 -topk8 -nocrypt -passin pass:${passwd} -in server.key -out server.pam 21 | -------------------------------------------------------------------------------- /nginx-ssl-letsencrypted/conf.d/default.conf: -------------------------------------------------------------------------------- 1 | server { 2 | listen 80; 3 | server_name centz.dimasrio.com; 4 | root /public_html/; 5 | 6 | location ~ /.well-known/acme-challenge{ 7 | allow all; 8 | root /usr/share/nginx/html/letsencrypt; 9 | } 10 | 11 | location / { 12 | return 301 https://centz.dimasrio.com$request_uri; 13 | } 14 | } 15 | 16 | server { 17 | listen 443 ssl http2; 18 | server_name centz.dimasrio.com; 19 | root /public_html/; 20 | 21 | ssl on; 22 | server_tokens off; 23 | ssl_certificate /etc/nginx/ssl/live/centz.dimasrio.com/fullchain.pem; 24 | ssl_certificate_key /etc/nginx/ssl/live/centz.dimasrio.com/privkey.pem; 25 | ssl_dhparam /etc/nginx/dhparam/dhparam-2048.pem; 26 | 27 | ssl_buffer_size 8k; 28 | ssl_protocols TLSv1.2 TLSv1.1 TLSv1; 29 | ssl_prefer_server_ciphers on; 30 | ssl_ciphers ECDH+AESGCM:ECDH+AES256:ECDH+AES128:DH+3DES:!ADH:!AECDH:!MD5; 31 | 32 | location / { 33 | index index.html; 34 | } 35 | 36 | } -------------------------------------------------------------------------------- /mongoDB/replica-set/build/key/mongo-keys: -------------------------------------------------------------------------------- 1 | 4zL8Zg0GWekHIIqca/Efq61f5OQV2M2kCPUXX5Han3RYTfT0OSa8oRyiUlpLsbNQ 2 | 7gZYD9BEilTCZDH0CxWPydkG3qZElSjJck+222kTPRf92Fo4tf8mJ2/GOsPNLWpD 3 | ARRshYnWdtnYg2X6UglZc6XN1THFUy0DQcsw7KrB+6jzfghkHNlt5hO8qb9NiYSw 4 | 2vqjPfUmCkaH0NaMHAMBFU0LXLx/9BtGEkqpoVD12ofooz4MG145ukOXHcnW24CT 5 | 7SEWTKcSNADuBHHo2qN99Zm5uidf7Q5UOFLFtZvh6WHh6fNfTrRIlFPwPFa1fvhe 6 | g06WMhTCqAz0Dl4eOIHMW4/4t979/j2mJT0RuNv7k7KxFMsRHkXamy+vMtk5lQJP 7 | JMhclq1+gpwUXjCOKbJxOoygVsxqCSPIOwejitjV8B954jxVzddukty5xi+eEWXZ 8 | CZDYHHyc8Rso0uInBhWVSZZMSnzRnT7jetT+za0xG70598ozNHR11N5KqvJwUT3I 9 | xIgxJzyY9fxS+VUUCmbyX/xtuywFHdRt7oUA+aGGeXfi3986l7olZbjfpR7SdSTo 10 | 3hqpmAcp1ogrP4oKWUHw8MCNoMA1w5LNaniNz+1bYj4TSkWEwaZ+JxZYeOGAPiB7 11 | wv21u77+8+ckKZ5bPxLxnnOZvTij6e38sM75+HrXt//Gwse6ZIrTNT6Sa8ki0pFp 12 | gRYwa9VJQFrcygU36R/Kl39AA2z5hJ9gnkxv9DXFQYDxvjqjDuTaJX2Pjcfqjuy9 13 | g7ThOwuDYYS+TaU4QUjNSzPrXqkNom+wORQuYitkusP+t4IPZeZ67H8/cHMf5fjA 14 | OlO+K2FO+jhjrcceUeUqgcZaClb2A/r7mlqrhpqelMR8JK0uU/pV9ENJkn5tebhp 15 | wjSVi+Q51sLKYMADMUi3gC0Gp5v2zAvsmLGlA+hzwH41mLretfoFzohVQKTPwFMi 16 | UT8jjdoqUS1yU7gQTiSAR/h/Mafs 17 | -------------------------------------------------------------------------------- /nginx-proxy/conf.d/metrics.conf: -------------------------------------------------------------------------------- 1 | server { 2 | listen 80; 3 | listen 443 ssl http2; 4 | server_name metrics.example.com; 5 | root /usr/share/nginx/html; 6 | 7 | if ($scheme = http) { 8 | return 301 https://$server_name$request_uri; 9 | } 10 | 11 | ssl_protocols TLSv1 TLSv1.1 TLSv1.2; 12 | ssl_certificate /etc/nginx/ssl/bundle.crt; 13 | ssl_certificate_key /etc/nginx/ssl/example.key; 14 | ssl_dhparam /etc/nginx/ssl/dhparam4096.pem; 15 | ssl_session_timeout 5m; 16 | ssl_session_cache shared:TLS:10m; 17 | ssl_ciphers EECDH+ECDSA+AESGCM:EECDH+aRSA+AESGCM:EECDH+ECDSA+SHA512:EECDH+ECDSA+SHA384:EECDH+ECDSA+SHA256:ECDH+AESGCM:ECDH+AES256:DH+AESGCM:DH+AES256:RSA+AESGCM:!aNULL:!eNULL:!LOW:!RC4:!3DES:!MD5:!EXP:!PSK:!SRP:!DSS; 18 | ssl_prefer_server_ciphers on; 19 | 20 | location / { 21 | proxy_set_header Host $host; 22 | proxy_set_header Accept-Encoding ""; 23 | proxy_set_header X-Real-IP $remote_addr; 24 | proxy_pass http://xxx.xxx.xxx.xxx:9090; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /nginx-proxy/conf.d/deployment.conf: -------------------------------------------------------------------------------- 1 | server { 2 | listen 80; 3 | listen 443 ssl http2; 4 | server_name deployment.example.com; 5 | root /usr/share/nginx/html; 6 | 7 | if ($scheme = http) { 8 | return 301 https://$server_name$request_uri; 9 | } 10 | 11 | ssl_protocols TLSv1 TLSv1.1 TLSv1.2; 12 | ssl_certificate /etc/nginx/ssl/bundle.crt; 13 | ssl_certificate_key /etc/nginx/ssl/example.key; 14 | ssl_dhparam /etc/nginx/ssl/dhparam4096.pem; 15 | ssl_session_timeout 5m; 16 | ssl_session_cache shared:TLS:10m; 17 | ssl_ciphers EECDH+ECDSA+AESGCM:EECDH+aRSA+AESGCM:EECDH+ECDSA+SHA512:EECDH+ECDSA+SHA384:EECDH+ECDSA+SHA256:ECDH+AESGCM:ECDH+AES256:DH+AESGCM:DH+AES256:RSA+AESGCM:!aNULL:!eNULL:!LOW:!RC4:!3DES:!MD5:!EXP:!PSK:!SRP:!DSS; 18 | ssl_prefer_server_ciphers on; 19 | 20 | location / { 21 | proxy_set_header Host $host; 22 | proxy_set_header Accept-Encoding ""; 23 | proxy_set_header X-Real-IP $remote_addr; 24 | proxy_pass http://xxx.xxx.xxx.xx:8080; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /nginx-proxy/conf.d/monitoring.conf: -------------------------------------------------------------------------------- 1 | server { 2 | listen 80; 3 | listen 443 ssl http2; 4 | server_name monitoring.example.com; 5 | root /usr/share/nginx/html; 6 | 7 | if ($scheme = http) { 8 | return 301 https://$server_name$request_uri; 9 | } 10 | 11 | ssl_protocols TLSv1 TLSv1.1 TLSv1.2; 12 | ssl_certificate /etc/nginx/ssl/bundle.crt; 13 | ssl_certificate_key /etc/nginx/ssl/example.key; 14 | ssl_dhparam /etc/nginx/ssl/dhparam4096.pem; 15 | ssl_session_timeout 5m; 16 | ssl_session_cache shared:TLS:10m; 17 | ssl_ciphers EECDH+ECDSA+AESGCM:EECDH+aRSA+AESGCM:EECDH+ECDSA+SHA512:EECDH+ECDSA+SHA384:EECDH+ECDSA+SHA256:ECDH+AESGCM:ECDH+AES256:DH+AESGCM:DH+AES256:RSA+AESGCM:!aNULL:!eNULL:!LOW:!RC4:!3DES:!MD5:!EXP:!PSK:!SRP:!DSS; 18 | ssl_prefer_server_ciphers on; 19 | 20 | location / { 21 | proxy_set_header Host $host; 22 | proxy_set_header Accept-Encoding ""; 23 | proxy_set_header X-Real-IP $remote_addr; 24 | proxy_pass http://xxx.xxx.xxx.xxx:3000; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /prometheus-grafana-alertmanager/docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: "3" 2 | 3 | services: 4 | alertmanager: 5 | container_name: alertmanager 6 | image: prom/alertmanager:v0.8.0 7 | restart: always 8 | ports: 9 | - "9093:9093" 10 | volumes: 11 | - ./alertmanagerdata:/etc/alertmanager:rw 12 | 13 | grafana: 14 | container_name: grafana 15 | restart: always 16 | image: grafana/grafana:6.4.3 17 | ports: 18 | - "3000:3000" 19 | environment: 20 | - GF_INSTALL_PLUGINS=grafana-piechart-panel,jdbranham-diagram-panel 21 | 22 | prometheus: 23 | container_name: prometheus 24 | image: prom/prometheus:v1.7.1 25 | links: 26 | - alertmanager 27 | command: 28 | - '-config.file=/etc/prometheus/prometheus.yml' 29 | - '-web.external-url=http://prometheus:9090/' 30 | - '-web.route-prefix=/' 31 | - '-alertmanager.url=http://alertmanager:9093' 32 | restart: always 33 | ports: 34 | - "9090:9090" 35 | volumes: 36 | - ./prometheusdata:/etc/prometheus:rw 37 | - ./prometheusdb:/prometheus/data:rw 38 | 39 | -------------------------------------------------------------------------------- /mongoDB/mongodb/ssl/mongodb.crt: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2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PuTpXT7R7yNQJcGN 18 | JwcvYviavMbBH8q9/BaAlCvuQ6a64FG1FoWMvSlCyHu8Hw== 19 | -----END CERTIFICATE----- 20 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Docker Compose 2 | 3 |

Prometheus Grafana and Alertmanager

4 | 5 | Docker compose script for setup monitoring tools using [Grafana](https://github.com/grafana/grafana), [Prometheus](https://github.com/prometheus) and [Alertmanager](https://github.com/prometheus/alertmanager). 6 | 7 |

Cadvisor

8 | 9 | Docker compose script for docker container monitoring. You can use this for scrape using [Prometheus](https://github.com/prometheus) 10 | 11 |

Blackbox Exporter

12 | 13 | Docker compose script for monitoring services HTTP,HTTPS,DNS,TCP and ICMP using [Blackbox](https://github.com/prometheus/blackbox_exporter). 14 | 15 |

Jenkins

16 | 17 | Docker compose script for setup [Jenkins](https://jenkins.io) using docker. 18 | 19 |

Nginx-proxy

20 | 21 | Docker compose script for setup domain monitoring tools using [Nginx](https://nginx.com) docker. 22 | 23 |

Nginx-php-fpm

24 | 25 | Docker compose script for setup webserver using [Nginx](https://nginx.com) and [PHP](https://php-fpm.org/) docker. 26 | 27 |

Installation

28 | 29 | ~~~~ 30 | $ git clone https://github.com/dimzrio/docker-compose.git 31 | 32 | $ cd blackbox-exporter/blackboxdata 33 | 34 | $ docker build -t prom/blackbox-exporter:v.1.0.0 . 35 | 36 | $ cd .. 37 | 38 | $ docker-compose up -d 39 | ~~~~ -------------------------------------------------------------------------------- /mongoDB/mongodb/ssl/ca.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIIDmDCCAoACCQD4BKxWTmt/vjANBgkqhkiG9w0BAQsFADCBjTELMAkGA1UEBhMC 3 | SUQxFDASBgNVBAgMC0RLSSBKYWthcnRhMRAwDgYDVQQHDAdKYWthcnRhMRAwDgYD 4 | VQQKDAdkaW16cmlvMRIwEAYDVQQLDAl0dXRvcmlhbHMxEDAOBgNVBAMMB2RpbXpy 5 | aW8xHjA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HE+SVs3G34xZ+EL 22 | -----END CERTIFICATE----- 23 | -------------------------------------------------------------------------------- /prometheus-grafana-alertmanager/alertmanagerdata/config.yml: -------------------------------------------------------------------------------- 1 | ################## 2 | # Notif to email # 3 | ################## 4 | global: 5 | smtp_smarthost: 'smtp.office365.com:587' 6 | smtp_from: 'xxx@xxxx.com' 7 | smtp_auth_username: 'xxx@xxxx.com' 8 | smtp_auth_password: 'xxxxxx' 9 | 10 | route: 11 | group_by: ['notif'] 12 | group_wait: 30s 13 | group_interval: 5m 14 | repeat_interval: 3h 15 | receiver: devops 16 | 17 | routes: 18 | - match: 19 | severity: critical 20 | receiver: devops 21 | 22 | receivers: 23 | - name: 'devops' 24 | email_configs: 25 | - to: 'destination@xxxxx.com' 26 | 27 | ################## 28 | # Notif to slack # 29 | ################## 30 | #receivers: 31 | # - name: 'devops' 32 | # slack_configs: 33 | # - channel: alerts 34 | # send_resolved: true 35 | # api_url: https://hooks.slack.com/services/ 36 | # title: '[{{ .Status | toUpper }}{{ if eq .Status "firing" }}:{{ .Alerts.Firing | len }}{{ end }}] Monitoring Notification' 37 | # text: >- 38 | # {{ range .Alerts }} 39 | # *Alert:* {{ .Annotations.summary }} - `{{ .Labels.severity }}` 40 | # *Description:* {{ .Annotations.description }} 41 | # *Graph:* <{{ .GeneratorURL }}|:chart_with_upwards_trend:> *Runbook:* <{{ .Annotations.runbook }}|:spiral_note_pad:> 42 | # *Details:* 43 | # {{ range .Labels.SortedPairs }} • *{{ .Name }}:* `{{ .Value }}` 44 | # {{ end }} 45 | # {{ end }} 46 | 47 | -------------------------------------------------------------------------------- /nginx-grpc/nginx/ssl/server.csr: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE REQUEST----- 2 | MIIEWTCCAkECAQAwFDESMBAGA1UEAwwJbG9jYWxob3N0MIICIjANBgkqhkiG9w0B 3 | AQEFAAOCAg8AMIICCgKCAgEAy9YCuWER9Rf+WFccDiNYM49GUuaW7OKEZy1D0I4W 4 | oPllX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D468iOwJuRb+74pn11b7lhe 20 | eEJEx9dlxj3EItDJZUtg67SY8FhXNGEV0lQslpqhDtHmihlO3ZZjOMQ4ugsdZUBR 21 | wotgOla+Q687uujssl1INacSiKpoSmgXEy6LHoBPjn/fzZ7sTijPC57CZGoHNo5u 22 | JXcPNbJ/3aqeduMJx8T/wqPkMvaP2aD+HMtdKaGute4KSFfSbhPqLcnvAWhHvFhy 23 | PHsUiWgxRuYO764SDe9aYNeXoEdSXVq1EsT6DjmDBGwsByl+hVlSTXnAzW7er58w 24 | +j4x3teNukjxFgmcIW9X1IYt47gV0hPWu1w3iq0mRnbmTFH1bua9AEQbXlMWkjh3 25 | UL/Bg7IQtkeX5uutAw== 26 | -----END CERTIFICATE REQUEST----- 27 | -------------------------------------------------------------------------------- /prometheus-grafana-alertmanager/prometheusdata/prometheus.yml: -------------------------------------------------------------------------------- 1 | global: 2 | scrape_interval: 15s 3 | evaluation_interval: 15s 4 | external_labels: 5 | monitor: 'codelab-monitor' 6 | 7 | rule_files: 8 | - 'prometheus.rules' 9 | 10 | scrape_configs: 11 | - job_name: 'prometheus' 12 | scrape_interval: 5s 13 | static_configs: 14 | - targets: ['localhost:9090'] 15 | 16 | ################# 17 | # Node Exporter # 18 | ################# 19 | 20 | # - job_name: 'hostname' 21 | # scrape_interval: 5s 22 | # static_configs: 23 | # - targets: ['xxx.xxx.xxx.xxx:9100'] 24 | # labels: 25 | # group: 'node_exporter' 26 | 27 | ##################### 28 | # Cadvisor Exporter # 29 | ##################### 30 | 31 | # - job_name: 'hostname' 32 | # scrape_interval: 10s 33 | # metrics_path: '/metrics' 34 | # static_configs: 35 | # - targets: ['xxx.xxx.xxx.xxx:9911'] 36 | # labels: 37 | # group: 'cAdvisor' 38 | 39 | ##################### 40 | # Blackbox Exporter # 41 | ##################### 42 | 43 | # - job_name: 'hostname' 44 | # scrape_interval: 60s 45 | # scheme: 'http' 46 | # metrics_path: '/probe' 47 | # params: 48 | # module: ['http_post'] 49 | # target: ['http://xxx.xxx.xxx.xxx:8080/API'] 50 | # static_configs: 51 | # - targets: ['blackbox-exporter:9115'] 52 | # labels: 53 | # group: 'blackbox_exporter' 54 | 55 | #################### 56 | # HAProxy Exporter # 57 | #################### 58 | 59 | # - job_name: 'hostname' 60 | # scrape_interval: 5s 61 | # static_configs: 62 | # - targets: ['xxx.xxx.xxx.xxx:9101'] 63 | # labels: 64 | # group: 'haproxy-exporter' 65 | 66 | -------------------------------------------------------------------------------- /mongoDB/replica-set/docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: '3.4' 2 | 3 | services: 4 | primary: 5 | build: 6 | context: ./build/ 7 | command: --bind_ip_all --logpath /data/logs/mongod.log --replSet $REPLICASET_NAME 8 | ports: 9 | - "127.0.0.1:30001:27017" 10 | # environment: 11 | # - MONGO_INITDB_ROOT_USERNAME=$ROOT_USER 12 | # - MONGO_INITDB_ROOT_PASSWORD=$ROOT_PASSWD 13 | env_file: 14 | - .env 15 | volumes: 16 | - ./primary_db:/data/db 17 | restart: always 18 | 19 | secondary_01: 20 | build: 21 | context: ./build/ 22 | command: --bind_ip_all --logpath /data/logs/mongod.log --replSet $REPLICASET_NAME 23 | ports: 24 | - "127.0.0.1:30002:27017" 25 | # environment: 26 | # - MONGO_INITDB_ROOT_USERNAME=$ROOT_USER 27 | # - MONGO_INITDB_ROOT_PASSWORD=$ROOT_PASSWD 28 | env_file: 29 | - .env 30 | volumes: 31 | - ./secondary_01_db:/data/db 32 | restart: always 33 | 34 | secondary_02: 35 | build: 36 | context: ./build/ 37 | command: --bind_ip_all --logpath /data/logs/mongod.log --replSet $REPLICASET_NAME 38 | ports: 39 | - "127.0.0.1:30003:27017" 40 | # environment: 41 | # - MONGO_INITDB_ROOT_USERNAME=$ROOT_USER 42 | # - MONGO_INITDB_ROOT_PASSWORD=$ROOT_PASSWD 43 | env_file: 44 | - .env 45 | volumes: 46 | - ./secondary_02_db:/data/db 47 | restart: always 48 | 49 | setup: 50 | build: 51 | context: ./build/ 52 | depends_on: 53 | - primary 54 | - secondary_01 55 | - secondary_02 56 | env_file: 57 | - .env 58 | volumes: 59 | - ./build/entrypoint/docker-entrypoint.sh:/data/entrypoint/docker-entrypoint.sh 60 | entrypoint: /data/entrypoint/docker-entrypoint.sh -------------------------------------------------------------------------------- /nginx-grpc/nginx/ssl/server.crt: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIIEnDCCAoQCAQEwDQYJKoZIhvcNAQEFBQAwFDESMBAGA1UEAwwJbG9jYWxob3N0 3 | MB4XDTE5MDIwMzA5MDcyNVoXDTIwMDIwMzA5MDcyNVowFDESMBAGA1UEAwwJbG9j 4 | YWxob3N0MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAy9YCuWER9Rf+ 5 | WFccDiNYM49GUuaW7OKEZy1D0I4WoPllXA4ybDYT5lYCVlT9TWfQ3kTIHl7mS2gV 6 | S5bSG/CjoxWQS0S+P8ovJfmGzipRHEIolsf4i91AI8/ZxWjrvtYpaqeY2iCnG6D4 7 | b7ShwoBa7KJi3+bCh9ibbagTOHJpnifHdR13ivNjjvYd3r9K9ANhMcPpEqQTR+h1 8 | nIf6bK8QTFUZ8jh0ulJf8K+wk+ImbWEIvbSC6l4Vhsk/NA0bjbRFUpRawoIzk5wR 9 | 3vGv4uReCxiGs8uMS+QOnJvvTHRN81l41VzU/TJ9/5+ewrKtAuOKcBQnf941JcnH 10 | JXeI6DDQsv3kwnfe8hoYFWmIuwSimbRtPK9fTgVjK0/q9xQzFqbgnBfdrGQ3BYd7 11 | egjw/nmQDOx2cLJw6H7GMTsKj1SkrOMFWegBldr0U+FGZCRnaww4sNdAk2z/kfLJ 12 | 7DXpyKDY+5I5r7oBNgGCcmW/rrD/cXC6ZdysEfQ8B8kvFOJZw2S8pZIsv5wAw/Tv 13 | pgHKtz6AJyrJ/hWlhM0GQfGrOHE2XyFfbt3T5ubR03H7UEgixbcQiTHQXvtV4BeM 14 | C6lmRFCdbkvg5apwSQJnLgbRmugaotQHeLy5qpBoKOJjSNSoaeK1SQxNik7QYdH9 15 | mTGwiUpSDLvOHwu2wv7dWp+T1X4CKSUCAwEAATANBgkqhkiG9w0BAQUFAAOCAgEA 16 | e4hmYuVxQHYit+RR6zsIr20kUd3pHfMYDFCdSb4ItJpp8yQMdp/zLU/kPwJvzWMz 17 | H+AXIT7jtZ2C3QGq0DrZarf0g/NnFCExNlAE6/qFZabE5QnxYZEvMrgp1LR5BH9e 18 | gMHDwTLsiF0wtdEuHv5LO1+kVrlSIkthg1rIkY54wg3NvlEOvMJyQ9SbEiuOh53o 19 | LQRhx2nrk8TCtoc5yVxhAdRGaMSzjaYzeFgoGVE0CiZZ/Cp471AjONq5YIzoO827 20 | 8lRRFcbeA/eKM9YiUZ8bGfW5W70Y9VeXZ5r4PgGX4blc5jOFBaPMGvE8SUfdzEyj 21 | vFItxSjUYKfZv+BWNXj0i0tQ/aHy/FkCk1QYdS0+c6F6sZzLajfnHh7U7awbN2G8 22 | gFUkHxT/c+axor/9sNcYBkJ0EIBX0dEfrT3TInsEAoK1oXnEDD5vAJjJNA6KrVXn 23 | F0MX4XQWyXVOiaH1zrBrFojRxHXulxhoS60MTwtwJUkkrOyq02WFdxm/90PLZ2Pp 24 | JMjUNH3TWB8fGCh5pawnLJWeZTZwCdR6LlksrMQU1o6NXJvnqcR3JMJaBNU57WgG 25 | MNYNqevbHb/MjcFAUoMfy8KtoTRI1Qo+PLAqW5o0FkMZmBnzfNYmjH32nUwO0aqF 26 | dzsabnzhxp2/xQE6mogw4Fj6Ck3M++2hakuTetdYVBY= 27 | -----END CERTIFICATE----- 28 | -------------------------------------------------------------------------------- /nginx-grpc/nginx/ssl/ca.crt: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIIEpDCCAowCCQCdGDPhldh0VDANBgkqhkiG9w0BAQsFADAUMRIwEAYDVQQDDAls 3 | b2NhbGhvc3QwHhcNMTkwMjAzMDkwNjU4WhcNMjAwMjAzMDkwN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Y8WfhoeFX4mDzeEZPVcMHUcIui 20 | AZ2euHyFvB4e8KDKir4ySFh/+7KrCZ563hmMNgZhy5kFtkTNNaRP9wlY0xzBW0F7 21 | 9bZcC5OntmoHkJgkKRcLTssM5gjDj7w24ESXW68kciSyGEDa7osSingNLHD2uyQh 22 | oLctU1L3Kgm5vMuZe9QsLMGQnLhVkI99lBAjVObR7acOi7ks8miJa03hq7t0L+F+ 23 | Py8hdd2CvYcIu9lGm5BmHpfCwF8f+KYGZ/f5R9xrbaMq2geHjXSnUbcYtk9Lkt5e 24 | 1QQPFUPdguxHqKgvaCvgxl6z6cSNeHg78tHuT/LraimZwhx7xv2q+WSJHny1OlvJ 25 | 80a9VCQbOfTMdR3KcHSVEiefZr9cHQ0IZEkKE4ngzTQbtKQ+SOZzotpN1ir8verk 26 | DW/54q5J8ICbj2ZMAAqjHON1ho5Hcz/1cjSOixULnjad21ZYHlUchg== 27 | -----END CERTIFICATE----- 28 | -------------------------------------------------------------------------------- /mongoDB/mongodb/ssl/ca.key: -------------------------------------------------------------------------------- 1 | -----BEGIN RSA PRIVATE KEY----- 2 | MIIEpQIBAAKCAQEA4HfQCU7u0vVvT/7Xgrg+/dilcibX1TlBxDbCMmwB1jmn7zdX 3 | XipFo79Grlk6rEH/fNgqEGHj6d26dLXHFUdF/yvw1NhreZ7wESLUPTKpHz/eQ8fe 4 | KUZp+murYV28tQFaxCfdUKA4gUZK4D4KbViDtejRd7ebeAWilyH/5kUPIbyGfmyL 5 | 1q6vTK3zpLUl40iHuk1smm8a7E9VE7VYXHZJvJLYoj+cIWOT83XEUrulhQpPywxA 6 | 9k22v6/aaXQUyCqtZMsOFbIaO0vpLeLf6bikbyU2M9OQkryuvPUdSK8BhboG6eni 7 | AWv/kWA1caC74EMf1J2Lon6NSEu5X2XnFZGa8wIDAQABAoIBAQCFgHzorFt6eKLl 8 | jwoaIv7D91AfHl8L3+vviSni1z4YbV4l9mIuDTIx+5dMJqGwxefwFpid+bqV41v8 9 | AgkP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p38hcw3Fq+Rvf6 25 | 1TyG5h5v7Ik6l1h9401NWRyeZnrlBz8BRp7f305leTZ9ZRD7+YEXvWfjda0PstIF 26 | ljr4JY/bwXs+r2cisVKK5m3zsXt1jKDftZ1QZdavhrNMGZUtVZJfbz8= 27 | -----END RSA PRIVATE KEY----- 28 | -------------------------------------------------------------------------------- /mongoDB/mongodb/ssl/mongodb.key: -------------------------------------------------------------------------------- 1 | -----BEGIN RSA PRIVATE KEY----- 2 | MIIEpQIBAAKCAQEAxfHbE0jEIFsyvsR3HdzuBHKiisYoZ2sqM70SqhMYY0GaqGrM 3 | o3VSy6uAmneH2VyA+AL21Ctg8XMLURVUuANKTuGCZPI3at2EIKr5tzSAcL24wc2M 4 | 05Eu4D+6kCbV4Zxn8JNYGeI6U4OkOdAWCYv9Lt6+798PBa5jV0BAGsZyMUzAUvQG 5 | iADzbgmCBhvhOSY9xy0roqFkGiggeGlpXXLUZKKXNLX2sH81D2UsM/lJqohuKD15 6 | NR6qQ29S8mmJTY2KrbPeZE/zqNIXpJXeOmphYwDblOnIexKMthRmDbqc2vwgh/SH 7 | eonrsXMW96ZvMw58hI0aHisO0ODcDBD/w+R/FwIDAQABAoIBAQCX+l/n6ICdDyhh 8 | C9shFJWy2Ikv34D6Fm+qlcqUxmB9JMun74f7IINXWPA+qPOm0b07rprwv/WIrHnN 9 | 4YDQX8ZX1hEVjFs8M6PUqTFdlnPfG+uU8UrkzZ2eE5AcSZUByeKL9bU4+lcp8/LN 10 | aJTi85aKu/8BkNOp2wDu5qfRZvgaHKf7UxzhyVahtZhv/crE+ogaRq0Bf4r1G4KT 11 | YFhXWS/W9ucXPb0nthlF81zKXA68k4l4fL7Zxcs3Dm0TgNYxAegz83aybxJeLH6n 12 | iHlFZhWCoEyKsk/9ZKUTST3cDMdzbgNlevpldfdULCM5KY6ehQYyEXdNtr7Y0iZC 13 | o0nOiiihAoGBAOUjeZtSgT//a4GvsUsWl4BNSwvh1H0rtMPMsNI9BqkRcmA9LUCy 14 | 35FLVP/0r+45T3CaD3ndVy8y9csgjKS1QvpPMjwRGesjMwFwSYnZum42h+7yv96u 15 | CxCVFqfrIme9E/FoQiRViCH2GA5mhrYuWOGnXP7imkrjM/N5tXcZmhlpAoGBAN0m 16 | Pl+VkAUakXRWgbs667dluNtSzYKhXtcN+qZUgIYg4MFxEDvHNcAszehZVLpDNWX5 17 | WtfhaCdT3hJluGqF1TIv/JbENXL//sVZ8OPxAbQk9sbJWCqo34tkZAI4uPl1Q7d8 18 | Qm3jLmR3ep7hOERBsRLDlq/Gkd8hENMENgu74kR/AoGAKCCXSkkfk2qSlCqFfOXe 19 | 8DwY+WK6CJWf2W4+RQMk6HTCt/Heu+bXWiV8JDrgmHJ24/xG24uUmhJtkv4HQ0zv 20 | BtDZtkU0acZHR2g3qKl1iZmJIqJmUYPfMi85wXxfERW+qVcdxikoZvIm8laoHr1t 21 | GU9q7MQYSycQ0QGucsYMA4kCgYEAzNBWg//oWlG41J4pmFWBaWD0S2vsmUcKpvFz 22 | agho39AjWAR2nGZrCYh1SvMw3TDRi5fc4oMICyRJT5CVs1IvmUOIE7m0JsWgFvat 23 | eu4CPezeAE0JMrkkD9zyInyWE7Le/FhAzbTRiop9Lhg4HD8a1938+N5Wyue8xTHp 24 | PATOEdECgYEA5JSPvw8vkdNXDG7IWHxYRWLy26383Ez1A5hSXBDxM9uxfimQZq0o 25 | ca6X+twZSDlTBndrVHN0x4syFEZ+nUyCpI08ia7I28JXq8iM03ByvwY3Ugz3BVdC 26 | xSiZe5MC0xkzBzyHEJI7UEZku171boW/r8GiP6GjQTDCCcXPgifkhvo= 27 | -----END RSA PRIVATE KEY----- 28 | -------------------------------------------------------------------------------- /nginx-proxy/ssl/example.key: -------------------------------------------------------------------------------- 1 | -----BEGIN PRIVATE KEY----- 2 | MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDI3fZBZ26ShxVO 3 | 5XqeoCaFhhMuRR8FEuRs8zXf8U54JV4SH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lbvR36lb0urZ2+d5oeovSVTma 20 | 3oX7hYRz8iZLNYNRc1RHOo9plId5wjX+uVWGot3XwXGO/hubHz8mmNfPbcOQDh+v 21 | 0EBAKLbG0RYEjdHsSxapVdrPQ4rIxy9zwLJvr3jt30+AmCyzY83wV7rTxQKBgEwx 22 | ZRLjxgTu8DEWPKTBu+ptJLP07ncO7k0WdR0mnBG3tNKB7wxkhO2c8c4e5cp3j1fb 23 | xAyV+DQ7VB2spYlyELW/KvLcX4nPSptEGadKNMjN9kho3HGH9DU9ePP4vh0Mn9nG 24 | kMG405QDOfY5/IXtaiEZ58VfI51rTV2V5plMjJ8BAoGAQlRUKYbEbp6vM5wkEh/6 25 | x8J/SQlTFV+beFDCbtxfHqQVkx2ShDHzfScplLjzRGemQ2tb4MlQkpbklKMg/6JU 26 | pryfbS/0vEXxgBkGwG5xpcQfuxCZIl1xtMPdOydUJH9RkgzeCO2E4MZKzLVSyIIA 27 | JBGopblW/GolVmpztWeayZw= 28 | -----END PRIVATE KEY----- 29 | -------------------------------------------------------------------------------- /prometheus-grafana-alertmanager/prometheusdata/prometheus.rules: -------------------------------------------------------------------------------- 1 | ########################### 2 | # Alert - Monitoring Host # 3 | ########################### 4 | ALERT host_down 5 | IF up{} == 0 6 | FOR 30s 7 | LABELS { severity = "critical" } 8 | ANNOTATIONS { 9 | summary = "Monitoring host production", 10 | description = "{{ $labels.job }} is down.", 11 | runbook = "https://prometheus.io/docs/alerting/configuration/", 12 | } 13 | 14 | ###################### 15 | # Alert - Disk Usage # 16 | #################### # 17 | ALERT disk_usage_warning 18 | IF ((node_filesystem_size{fstype="ext4",mountpoint="/"} - node_filesystem_avail{fstype="ext4",mountpoint="/"} ) / (node_filesystem_size{fstype="ext4",mountpoint="/"})) * 100 >= 65 19 | FOR 1m 20 | LABELS { severity = "critical" } 21 | ANNOTATIONS { 22 | summary = "Server storage is almost full", 23 | description = "Disk usage on {{ $labels.job }} is {{ humanize $value }}%. Reported by instance {{ $labels.instance }}.", 24 | runbook = "https://prometheus.io/docs/alerting/configuration/", 25 | } 26 | 27 | 28 | #################### 29 | # Alert - CPU Load # 30 | #################### 31 | ALERT high_cpu_load 32 | IF 100 * (1 - avg by(instance)(irate(node_cpu{mode='idle'}[1m]))) >= 65 33 | FOR 1m 34 | LABELS { severity = "critical" } 35 | ANNOTATIONS { 36 | summary = "Server under high load", 37 | description = "High CPU Load on {{ $labels.job }} is {{ humanize $value }}. Reported by instance {{ $labels.instance }}.", 38 | runbook = "https://prometheus.io/docs/alerting/configuration/", 39 | } 40 | 41 | 42 | ####################### 43 | # Alert - Memory Load # 44 | ####################### 45 | ALERT high_memory_load 46 | IF (((node_memory_MemTotal{} - node_memory_MemFree{} ) / (node_memory_MemTotal{}) )* 100) >= 90 47 | FOR 1m 48 | LABELS { severity = "critical" } 49 | ANNOTATIONS { 50 | summary = "Server under high memory load", 51 | description = "High Memory Load on {{ $labels.job }} is {{ humanize $value}}%. Reported by instance {{ $labels.instance }}", 52 | runbook = "https://prometheus.io/docs/alerting/configuration/", 53 | } 54 | -------------------------------------------------------------------------------- /nginx-tuning-best-performance/conf/nginx.conf: -------------------------------------------------------------------------------- 1 | user nginx; 2 | worker_processes auto; 3 | 4 | # number of file descriptors (FD) used for nginx 5 | # don't forget to set FD or open file in sysctl 6 | worker_rlimit_nofile 65535; 7 | 8 | error_log /var/log/nginx/error.log warn; 9 | pid /var/run/nginx.pid; 10 | 11 | 12 | events { 13 | # max clients each worker 14 | worker_connections 8192; 15 | 16 | # optimized to serve many clients with each thread 17 | use epoll; 18 | 19 | # accept as many connections as possible 20 | multi_accept on; 21 | } 22 | 23 | http { 24 | # cache informations about FDs, frequently accessed files 25 | # can boost performance, but you need to test those values 26 | open_file_cache max=200000 inactive=30s; 27 | open_file_cache_valid 60s; 28 | open_file_cache_min_uses 2; 29 | open_file_cache_errors on; 30 | 31 | include /etc/nginx/mime.types; 32 | default_type application/octet-stream; 33 | 34 | log_format main '$remote_addr - $remote_user [$time_local] "$request" ' 35 | '$status $body_bytes_sent "$http_referer" ' 36 | '"$http_user_agent" "$http_x_forwarded_for"'; 37 | 38 | access_log /var/log/nginx/access.log main; 39 | 40 | sendfile on; 41 | tcp_nopush on; 42 | 43 | # Enable gzip compresion 44 | gzip on; 45 | gzip_disable "msie6"; 46 | gzip_proxied any; 47 | gzip_comp_level 7; 48 | gzip_min_length 50; 49 | gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/vnd.ms-fontobject application/x-font-ttf font/opentype image/svg+xml image/x-icon; 50 | 51 | # allow the server to close connection on non responding client, this will free up memory 52 | reset_timedout_connection on; 53 | 54 | # request timed out -- default 60 55 | client_body_timeout 10; 56 | 57 | # if client stop responding, free up memory -- default 60 58 | send_timeout 2; 59 | 60 | # server will close connection after this time -- default 75 61 | keepalive_timeout 30; 62 | 63 | # number of requests client can make over keep-alive -- for testing environment 64 | keepalive_requests 100000; 65 | 66 | server { 67 | listen 80; 68 | index index.html; 69 | root /public_html/; 70 | } 71 | 72 | } -------------------------------------------------------------------------------- /mongoDB/mongodb/ssl/mongodb.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN RSA PRIVATE KEY----- 2 | MIIEpQIBAAKCAQEAxfHbE0jEIFsyvsR3HdzuBHKiisYoZ2sqM70SqhMYY0GaqGrM 3 | o3VSy6uAmneH2VyA+AL21Ctg8XMLURVUuANKTuGCZPI3at2EIKr5tzSAcL24wc2M 4 | 05Eu4D+6kCbV4Zxn8JNYGeI6U4OkOdAWCYv9Lt6+798PBa5jV0BAGsZyMUzAUvQG 5 | iADzbgmCBhvhOSY9xy0roqFkGiggeGlpXXLUZKKXNLX2sH81D2UsM/lJqohuKD15 6 | NR6qQ29S8mmJTY2KrbPeZE/zqNIXpJXeOmphYwDblOnIexKMthRmDbqc2vwgh/SH 7 | eonrsXMW96ZvMw58hI0aHisO0ODcDBD/w+R/FwIDAQABAoIBAQCX+l/n6ICdDyhh 8 | C9shFJWy2Ikv34D6Fm+qlcqUxmB9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d2YSwU0WTycllVQ1ODdUyWCqgHJz0AOX5q82Xj 42 | 2TgFWfuhHtcSKtde0er7Xd2i9VnkMRHWsPrv5+hK5eFWRhfkBYB677CBet6jlJ67 43 | ASmhTwHa65n4GUhvOE54XWMif40boyyjC5a/JSsnFHO6mGqURwCelf2eR4lcWV76 44 | LGLFgrvg9KlyCbslOz2kY3MFO7pXgt5KAjZE8geS9JdmqckbPuTpXT7R7yNQJcGN 45 | JwcvYviavMbBH8q9/BaAlCvuQ6a64FG1FoWMvSlCyHu8Hw== 46 | -----END CERTIFICATE----- 47 | -------------------------------------------------------------------------------- /nginx-grpc/nginx/ssl/server.pam: -------------------------------------------------------------------------------- 1 | -----BEGIN PRIVATE KEY----- 2 | MIIJQgIBADANBgkqhkiG9w0BAQEFAASCCSwwggkoAgEAAoICAQDL1gK5YRH1F/5Y 3 | VxwOI1gzj0ZS5pbs4oRnLUPQjhag+WVcDjJsNhPmVgJWVP1NZ9DeRMgeXuZLaBVL 4 | ltIb8KOjFZBLRL4/yi8l+YbOKlEcQiiWx/iL3UAjz9nFaOu+1ilqp5jaIKcboPhv 5 | tKHCgFrsomLf5sKH2JttqBM4cmmeJ8d1HXeK82OO9h3ev0r0A2Exw+kSpBNH6HWc 6 | h/psrxBMVRnyOHS6Ul/wr7CT4iZtYQi9tILqXhWGyT80DRuNtEVSlFrCgjOTnBHe 7 | 8a/i5F4LGIazy4xL5A6cm+9MdE3zWXjVXNT9Mn3/n57Csq0C44pwFCd/3jUlyccl 8 | d4joMNCy/eTCd97yGhgVaYi7BKKZtG08r19OBWMrT+r3FDMWpuCcF92sZDcFh3t6 9 | CPD+eZAM7HZwsnDofsYxOwqPVKSs4wVZ6AGV2vRT4UZkJGdrDDiw10CTbP+R8sns 10 | NenIoNj7kjmvugE2AYJyZb+usP9xcLpl3KwR9DwHyS8U4lnDZLylkiy/nADD9O+m 11 | Acq3PoAnKsn+FaWEzQZB8as4cTZfIV9u3dPm5tHTcftQSCLFtxCJMdBe+1Xg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pk5qLHyAhptmrXpiYAa/pgZ8+mRWL8SnBN8CEM3TSr+jJkSb/YadqszK9d 44 | YjYBpH63ykBk5nWsXrRzrRb98vL8AFbVF3JHN64/Bu9lwF8ONcokGVZgbNn2Bf9H 45 | cXRhgPDO5velJk4N/2hOrh9WBAqYgNOMH0B1NhrmdOvsXS+paKytEwAwehcnH2OQ 46 | W4MCggEADnykx7sJ+0zkH+w55gY9a0vQLkKTb+NPzXdL3Oe6KrcZGeWTefKrLRb4 47 | CTVwhIPTZfZ3HkoocW+JspSqJjKScQ6NlzOaKRnrurPM2aEimTk1baShRdyKqhUU 48 | Cxt7mbhGxXwI8NT7E93Yj4KNtetTu9LahwVClqfcq0ZwhiQeqN4eA+MxlnWXNewx 49 | as/okZ2tRdXol7//dDXChGaHng0ZbNhO60LTxajnQdKaOU0xPUSeNP4f0LXqH+ih 50 | Mh6w8fFUKtxWAh3bkvLiPBKTerd8gRUQoDRFFJTzSXZ4VB7Sj0zLQpoViEUvXhwQ 51 | VeSsi2zKcv9jvkdZuVfXtHyX5IRI8g== 52 | -----END PRIVATE KEY----- 53 | -------------------------------------------------------------------------------- /nginx-grpc/nginx/ssl/ca.key: -------------------------------------------------------------------------------- 1 | -----BEGIN RSA PRIVATE KEY----- 2 | Proc-Type: 4,ENCRYPTED 3 | DEK-Info: DES-EDE3-CBC,647186704F93BD8E 4 | 5 | CDPC5Cac9afrZZb0BE+SDi+hEZ4wRcMlTXjhfjR5rhktPXzG0xuBSwFNAViM9WHx 6 | CD9PlhuEgivsF+BATLNVl6i+sp0gvOfP8CHgBhGdDL5M2kTZjbTq/tSdutRYYBX3 7 | 8+ZN0yh4ShBI7uAU7oaDIsi6aYxCJBgdsvHKBRcNWOqAS6vRUc++Mva5qfm3br36 8 | h2R+/ucuUlvNU64/pWIsshOgy0+FOBmzNOJ64RUQGmmQaINjcN3enMmics/Seosg 9 | Ha+rXKuUbvxz8gc2gW9AP+OoBOSFG/g951UstWIJbcPX5gLflZXkeyXm2gMF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087FnAJFxDdPFngGnI3zW4LRaqles4it87vOWjQUb 42 | +6GiaCCl7ikODNJOEUy4EuKMuwOOXNJbaXvvqK5jtX/iL2WzzqLBQjizTx9zImt5 43 | vVITpcnUUf6Hf/zkqVHa1vOJuSI5nLVGX5tKmtmJ4KciV1MrT75i7fHBokMR+OQ/ 44 | 6c3fHP8SbOWJJ0hYMdnegmpZHgyn0Hmum9E0dMHshf1XPQKe3qSawFJs6Kv8jz43 45 | wYeylHj8iuipWb0ogpATfOWs3TFcsh6O26q42pLhvj24ddBq/I6sO7w+kkhiHBsD 46 | wgKMJ0Zg97bqlmPtIZI2GY/LuahKA4tJmMZxp70VMJ7UAgEgxCvcclQ8NcEURrDv 47 | y/cLPSMKjVqBI33LMM1g9LjF1DlZbDogaOtzYXL4i62Yl7LJw3ic63aKtNYe/WTS 48 | Ko1E3LgdUcq9LdUt7RhKtiUvDp27kgZjaZwhbmHt08Rz9h+z3MaGSfl/+3ZciNk2 49 | K08L/HHSviNmY/AbIJrKQCOHPWgpXsScVfT3xBljSnfuMY1r2jw18k9xVSnWFDvn 50 | n7CvNPn2lLPQ/VCXSbzHmAvncgRkS4y2qz2ge87pGuXamGGUcL+6KEJMn7zJmpyF 51 | o9MGGrdzT9D8q3wYsmSMFDAbHKmtHrM7pn6URsF+ROStkdVX/1X0eJfV5fXcdDXd 52 | OCI7FIzlD080EZaOfvlE4FB6ECvPZukTF4Dxvvb7pJyBbLHl+So8+jq5SR3UOAdT 53 | 5DdUj1QXIJ8GPRtG6vMEOdXaHqXOoJGyZTuuSbCY9XUTzwNmSb1GXJ4uC5pwVP1n 54 | -----END RSA PRIVATE KEY----- 55 | -------------------------------------------------------------------------------- /nginx-grpc/nginx/ssl/server.key: -------------------------------------------------------------------------------- 1 | -----BEGIN RSA PRIVATE KEY----- 2 | Proc-Type: 4,ENCRYPTED 3 | DEK-Info: DES-EDE3-CBC,D870E888A05AD5F3 4 | 5 | 1hBvIxCKqY4oU5hd0F6biNYY5bY0DZkJ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qoHm 53 | VG7XxWgcQJqsuwZKW/KHitwuQZUkyFGEUUj9Ur73doEA/HY6PdTE4E1MsBwjQHTd 54 | -----END RSA PRIVATE KEY----- 55 | -------------------------------------------------------------------------------- /nginx-proxy/ssl/bundle.crt: -------------------------------------------------------------------------------- 1 | -----BEGIN CERTIFICATE----- 2 | MIIHFzCCBf+gAwIBAgIQQuSS4cH/T3gG8Zp6XJrZ0DANBgkqhkiG9w0BAQsFADB+ 3 | MQswCQYDVQQGEwJVUzEdMBsGA1UEChMUU3ltYW50ZWMgQ29ycG9yYXRpb24xHzAd 4 | BgNVBAsTFlN5bWFudGVjIFRydXN0IE5ldHdvcmsxLzAtBgNVBAMTJlN5bWFudGVj 5 | IENsYXNzIDMgU2VjdXJlIFNlcnZlciBDQSAtIEc0MB4XDTE2MTEwNzAwMDAwMFoX 6 | DTE5MTAxNTIzNTk1OVowgZ8xCzAJBgNVBAYTAklEMRgwFgYDVQQIDA9KQUtBUlRB 7 | IFNFTEFUQU4xEjAQBgNVBAcMCVNFVElBQlVESTEnMCUGA1UECgweUFQuIEZ1dHVy 8 | ZWFkeSBJbnN1cmFuY2UgQnJva2VyMR8wHQYDVQQLDBZJbmZvcm1hdGlvbiBUZWNo 9 | bm9sb2d5MRgwFgYDVQQDDA8qLmZ1dHVyZWFkeS5jb20wggEiMA0GCSqGSIb3DQEB 10 | AQUAA4IBDwAwggEKAoIBAQDI3fZBZ26ShxVO5XqeoCaFhhMuRR8FEuRs8zXf8U54 11 | JV4SHsQ8e5EzIKuXaFjfCpeyuclzGKe/9WPn+4syeKdXZpkEhzx++7wpxZXhVamM 12 | R30WGlKbEh23cfdk6InSYrA3inFypdY228MRZQ3VPVa9mMlbWMba/vNiOenoo5/a 13 | 0SMVUXS6Wch6M24hFhncv9AGozwpRWdDv+rpmGOYmy6Z+YlGLc/O4sOow856RXwE 14 | P7qbP4BiL/wPvWDndTB6whzYchwlqZg1/pBgdHFnPYpYA5lu8bkRjBr/qQVRJk9v 15 | hb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EXxgBkGwG5xpcQfuxCZIl1xtMPdOydUJH9RkgzeCO2E4MZKzLVSyIIA 97 | JBGopblW/GolVmpztWeayZw= 98 | -----END PRIVATE KEY----- 99 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | {one line to give the program's name and a brief idea of what it does.} 635 | Copyright (C) {year} {name of author} 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | {project} Copyright (C) {year} {fullname} 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | --------------------------------------------------------------------------------