This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import sys | |
# Copy a source image to a target repository using Docker API registry v2 | |
# ref. https://www.yuribacciarini.com/docker-registry-http-api-v2-demistified-once-and-for-all/ | |
def main(): | |
source = "gcr.io/google-containers/addon-builder:latest" | |
target = "ZZZ.dkr.ecr.us-east-1.amazonaws.com/addon-builder:latest" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: ambassadro-sample | |
spec: | |
containers: | |
- name: twemproxy | |
image: ganomede/twemproxy | |
command: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: ambassadro-sample | |
spec: | |
containers: | |
- name: twemproxy | |
image: ganomede/twemproxy | |
command: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
redis: | |
listen: 127.0.0.1:6379 | |
hash: fnv1a_64 | |
distribution: ketama | |
auto_eject_hosts: true | |
redis: true | |
timeout: 400 | |
server_retry_timeout: 2000 | |
server_failure_limit: 1 | |
servers: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1beta1 | |
kind: StatefulSet | |
metadata: | |
name: sharded-redis | |
spec: | |
serviceName: "redis" | |
replicas: 3 | |
template: | |
metadata: | |
labels: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Component({ | |
selector: 'films', | |
template: ` | |
<div class="content"> | |
<button (click)="getFilms()">Get Films</button> | |
<ul> | |
<li *ngFor="let film of films$ | async" >{{film.name}}</li> | |
</ul> | |
</div> | |
`, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
worker_processes 2; | |
pid /var/run/nginx.pid; | |
worker_rlimit_nofile 65535; | |
# [ debug | info | notice | warn | error | crit ] | |
error_log /var/log/nginx.error_log info; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
nginx: | |
image: nginx:latest | |
container_name: nginx | |
volumes: | |
- ./nginx.conf:/etc/nginx/nginx.conf | |
#- ./.htpasswd:/etc/nginx/.htpasswd | |
- ./certs:/etc/nginx/certs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* For WordPress, force the protocol scheme to be HTTPS | |
* when is_ssl() doesn't work, e.g. on a reverse proxied server | |
* where _SERVER['HTTPS'] and _SERVER['SERVER_PORT'] don't | |
* indicate that SSL is being used. | |
*/if ($_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https') | |
$_SERVER['HTTPS'] = '1'; | |
if (isset($_SERVER['HTTP_X_FORWARDED_HOST'])) { | |
$_SERVER['HTTP_HOST'] = $_SERVER['HTTP_X_FORWARDED_HOST']; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
file_uploads = On | |
max_execution_time = 600 | |
memory_limit = 512M | |
post_max_size = 32M | |
upload_max_filesize = 32M |
NewerOlder