mirror of
https://github.com/casjaysdevdocker/docker
synced 2025-10-07 10:17:31 -04:00
🦈🏠🐜❗ Initial Commit ❗🐜🦈🏠
This commit is contained in:
99
rootfs/tmp/etc/nginx/mime.types
Normal file
99
rootfs/tmp/etc/nginx/mime.types
Normal file
@@ -0,0 +1,99 @@
|
||||
|
||||
types {
|
||||
text/html html htm shtml;
|
||||
text/css css;
|
||||
text/xml xml;
|
||||
image/gif gif;
|
||||
image/jpeg jpeg jpg;
|
||||
application/javascript js;
|
||||
application/atom+xml atom;
|
||||
application/rss+xml rss;
|
||||
|
||||
text/mathml mml;
|
||||
text/plain txt;
|
||||
text/vnd.sun.j2me.app-descriptor jad;
|
||||
text/vnd.wap.wml wml;
|
||||
text/x-component htc;
|
||||
|
||||
image/avif avif;
|
||||
image/png png;
|
||||
image/svg+xml svg svgz;
|
||||
image/tiff tif tiff;
|
||||
image/vnd.wap.wbmp wbmp;
|
||||
image/webp webp;
|
||||
image/x-icon ico;
|
||||
image/x-jng jng;
|
||||
image/x-ms-bmp bmp;
|
||||
|
||||
font/woff woff;
|
||||
font/woff2 woff2;
|
||||
|
||||
application/java-archive jar war ear;
|
||||
application/json json;
|
||||
application/mac-binhex40 hqx;
|
||||
application/msword doc;
|
||||
application/pdf pdf;
|
||||
application/postscript ps eps ai;
|
||||
application/rtf rtf;
|
||||
application/vnd.apple.mpegurl m3u8;
|
||||
application/vnd.google-earth.kml+xml kml;
|
||||
application/vnd.google-earth.kmz kmz;
|
||||
application/vnd.ms-excel xls;
|
||||
application/vnd.ms-fontobject eot;
|
||||
application/vnd.ms-powerpoint ppt;
|
||||
application/vnd.oasis.opendocument.graphics odg;
|
||||
application/vnd.oasis.opendocument.presentation odp;
|
||||
application/vnd.oasis.opendocument.spreadsheet ods;
|
||||
application/vnd.oasis.opendocument.text odt;
|
||||
application/vnd.openxmlformats-officedocument.presentationml.presentation
|
||||
pptx;
|
||||
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
|
||||
xlsx;
|
||||
application/vnd.openxmlformats-officedocument.wordprocessingml.document
|
||||
docx;
|
||||
application/vnd.wap.wmlc wmlc;
|
||||
application/wasm wasm;
|
||||
application/x-7z-compressed 7z;
|
||||
application/x-cocoa cco;
|
||||
application/x-java-archive-diff jardiff;
|
||||
application/x-java-jnlp-file jnlp;
|
||||
application/x-makeself run;
|
||||
application/x-perl pl pm;
|
||||
application/x-pilot prc pdb;
|
||||
application/x-rar-compressed rar;
|
||||
application/x-redhat-package-manager rpm;
|
||||
application/x-sea sea;
|
||||
application/x-shockwave-flash swf;
|
||||
application/x-stuffit sit;
|
||||
application/x-tcl tcl tk;
|
||||
application/x-x509-ca-cert der pem crt;
|
||||
application/x-xpinstall xpi;
|
||||
application/xhtml+xml xhtml;
|
||||
application/xspf+xml xspf;
|
||||
application/zip zip;
|
||||
|
||||
application/octet-stream bin exe dll;
|
||||
application/octet-stream deb;
|
||||
application/octet-stream dmg;
|
||||
application/octet-stream iso img;
|
||||
application/octet-stream msi msp msm;
|
||||
|
||||
audio/midi mid midi kar;
|
||||
audio/mpeg mp3;
|
||||
audio/ogg ogg;
|
||||
audio/x-m4a m4a;
|
||||
audio/x-realaudio ra;
|
||||
|
||||
video/3gpp 3gpp 3gp;
|
||||
video/mp2t ts;
|
||||
video/mp4 mp4;
|
||||
video/mpeg mpeg mpg;
|
||||
video/quicktime mov;
|
||||
video/webm webm;
|
||||
video/x-flv flv;
|
||||
video/x-m4v m4v;
|
||||
video/x-mng mng;
|
||||
video/x-ms-asf asx asf;
|
||||
video/x-ms-wmv wmv;
|
||||
video/x-msvideo avi;
|
||||
}
|
81
rootfs/tmp/etc/nginx/nginx.conf
Normal file
81
rootfs/tmp/etc/nginx/nginx.conf
Normal file
@@ -0,0 +1,81 @@
|
||||
# nginx configuration for proxying
|
||||
|
||||
user REPLACE_WWW_USER;
|
||||
worker_processes auto;
|
||||
daemon on;
|
||||
error_log REPLACE_LOG_DIR/nginx.log warn;
|
||||
pid REPLACE_RUN_DIR/nginx.pid;
|
||||
events { worker_connections 1024; }
|
||||
|
||||
http {
|
||||
include REPLACE_ETC_DIR/mime.types;
|
||||
default_type "text/html";
|
||||
sendfile on;
|
||||
keepalive_timeout 65;
|
||||
gzip on;
|
||||
map $http_upgrade $connection_upgrade { default upgrade; '' close; }
|
||||
disable_symlinks off;
|
||||
|
||||
server {
|
||||
listen 0.0.0.0:80 default_server;
|
||||
server_name REPLACE_SERVER_NAME;
|
||||
client_max_body_size 0;
|
||||
proxy_intercept_errors off;
|
||||
add_header X-Frame-Options "SAMEORIGIN" always;
|
||||
add_header X-XSS-Protection "1; mode=block" always;
|
||||
add_header X-Content-Type-Options "nosniff" always;
|
||||
add_header Referrer-Policy "no-referrer-when-downgrade" always;
|
||||
add_header Content-Security-Policy "script-src 'self' 'unsafe-inline' 'unsafe-eval' *; frame-src 'self' *; object-src 'self'" always;
|
||||
index index.php index.cgi index.pl index.aspx index.txt index.json index.html index.unknown.php index.default.php;
|
||||
root /var/lib/nginx/html;
|
||||
|
||||
location / {
|
||||
root REPLACE_SERVER_WWW_DIR;
|
||||
}
|
||||
|
||||
location /health {
|
||||
default_type text/plain;
|
||||
return 200 'ok';
|
||||
}
|
||||
location /health/text {
|
||||
default_type text/plain;
|
||||
return 200 'ok';
|
||||
}
|
||||
location /health/json {
|
||||
default_type application/json;
|
||||
return 200 '{"status":"ok","message":"running"}';
|
||||
}
|
||||
|
||||
|
||||
location /v2 {
|
||||
send_timeout 3600;
|
||||
client_max_body_size 0;
|
||||
proxy_http_version 1.1;
|
||||
proxy_intercept_errors off;
|
||||
proxy_send_timeout 3600;
|
||||
proxy_read_timeout 3600;
|
||||
proxy_connect_timeout 3600;
|
||||
proxy_buffering off;
|
||||
proxy_request_buffering off;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_pass http://127.0.0.1:5000/v2;
|
||||
}
|
||||
location /debug {
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_pass http://127.0.0.1:5001/debug;
|
||||
}
|
||||
location /metrics {
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_pass http://127.0.0.1:5001/metrics;
|
||||
}
|
||||
}
|
||||
}
|
137
rootfs/tmp/etc/registry/registry.yaml
Normal file
137
rootfs/tmp/etc/registry/registry.yaml
Normal file
@@ -0,0 +1,137 @@
|
||||
#https://docs.docker.com/registry/configuration/
|
||||
version: 0.1
|
||||
log:
|
||||
fields:
|
||||
service: registry
|
||||
################
|
||||
storage:
|
||||
delete:
|
||||
enabled: true
|
||||
cache:
|
||||
blobdescriptor: inmemory
|
||||
filesystem:
|
||||
rootdirectory: REPLACE_DATA_DIR
|
||||
################
|
||||
http:
|
||||
addr: :REPLACE_REGISTRY_PORT
|
||||
#prefix: /my/nested/registry/
|
||||
#host: http://myregistryaddress.org:5000
|
||||
secret: REPLACE_REGISTRY_SECRET
|
||||
relativeurls: true
|
||||
#draintimeout: 60s
|
||||
# tls:
|
||||
# certificate: /certs/certs/localhost.crt
|
||||
# key: /certs/private/localhost.key
|
||||
# letsencrypt:
|
||||
# cachefile: /config/certs/cache
|
||||
# email: emailused@letsencrypt.com
|
||||
# hosts: [myregistryaddress.org]
|
||||
headers:
|
||||
X-Content-Type-Options: [nosniff]
|
||||
Access-Control-Max-Age: [1728000]
|
||||
Access-Control-Allow-Origin: ['*']
|
||||
Access-Control-Allow-Credentials: [true]
|
||||
Access-Control-Allow-Headers: ['Authorization', 'Accept', 'Cache-Control']
|
||||
Access-Control-Expose-Headers: ['Docker-Content-Digest']
|
||||
Access-Control-Allow-Methods: ['HEAD', 'GET', 'OPTIONS', 'DELETE']
|
||||
debug:
|
||||
addr: :5001
|
||||
prometheus:
|
||||
enabled: true
|
||||
path: /metrics
|
||||
http2:
|
||||
disabled: false
|
||||
################
|
||||
auth:
|
||||
none:
|
||||
# silly:
|
||||
# realm: silly-realm
|
||||
# service: silly-service
|
||||
# token:
|
||||
# autoredirect: true
|
||||
# realm: token-realm
|
||||
# service: token-service
|
||||
# issuer: registry-token-issuer
|
||||
# rootcertbundle: /root/certs/bundle
|
||||
# htpasswd:
|
||||
# realm: basic-realm
|
||||
# path: /config/auth/htpasswd
|
||||
################
|
||||
# middleware:
|
||||
# registry:
|
||||
################
|
||||
# reporting:
|
||||
# bugsnag:
|
||||
# apikey: bugsnagapikey
|
||||
# releasestage: bugsnagreleasestage
|
||||
# endpoint: bugsnagendpoint
|
||||
# newrelic:
|
||||
# licensekey: newreliclicensekey
|
||||
# name: newrelicname
|
||||
# verbose: true
|
||||
|
||||
# notifications:
|
||||
# events:
|
||||
# includereferences: true
|
||||
# endpoints:
|
||||
# - name: alistener
|
||||
# disabled: false
|
||||
# url: https://my.listener.com/event
|
||||
# headers: <http.Header>
|
||||
# timeout: 1s
|
||||
# threshold: 10
|
||||
# backoff: 1s
|
||||
# ignoredmediatypes:
|
||||
# - application/octet-stream
|
||||
# ignore:
|
||||
# mediatypes:
|
||||
# - application/octet-stream
|
||||
# actions:
|
||||
# - pull
|
||||
################
|
||||
# redis:
|
||||
# addr: localhost:6379
|
||||
# password: asecret
|
||||
# db: 0
|
||||
# dialtimeout: 10ms
|
||||
# readtimeout: 10ms
|
||||
# writetimeout: 10ms
|
||||
# pool:
|
||||
# maxidle: 16
|
||||
# maxactive: 64
|
||||
# idletimeout: 300s
|
||||
################
|
||||
health:
|
||||
storagedriver:
|
||||
enabled: false
|
||||
interval: 30s
|
||||
threshold: 3
|
||||
#file:
|
||||
# - file: REPLACE_CONF_DIR/config.yml
|
||||
# interval: 60s
|
||||
# http:
|
||||
# - uri: http://server.to.check/must/return/200
|
||||
# headers:
|
||||
# Authorization: [Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==]
|
||||
# statuscode: 200
|
||||
# timeout: 3s
|
||||
# interval: 10s
|
||||
# threshold: 3
|
||||
# tcp:
|
||||
# - addr: redis-server.domain.com:6379
|
||||
# timeout: 3s
|
||||
# interval: 10s
|
||||
# threshold: 3
|
||||
################
|
||||
# proxy:
|
||||
# remoteurl: https://registry-1.docker.io
|
||||
# username: [username]
|
||||
# password: [password]
|
||||
################
|
||||
compatibility:
|
||||
schema1:
|
||||
enabled: true
|
||||
#signingkeyfile: REPLACE_CONF_DIR/key.json
|
||||
################
|
||||
validation:
|
||||
disabled: true
|
Reference in New Issue
Block a user