mirror of
https://github.com/kwk/docker-registry-frontend.git
synced 2024-09-20 15:26:22 +08:00
68903ef5c1
There is an error that scripts/repository-list-directive.html cannot be found. But other than that, the Docker image builds and serves the app.
59 lines
1.2 KiB
Plaintext
59 lines
1.2 KiB
Plaintext
server {
|
|
listen 80 default_server;
|
|
listen [::]:80 default_server ipv6only=on;
|
|
|
|
root /usr/share/nginx/html;
|
|
index index.html index.htm;
|
|
|
|
# Make site accessible from http://localhost/
|
|
server_name localhost;
|
|
|
|
location / {
|
|
# First attempt to serve request as file, then
|
|
# as directory, then fall back to displaying a 404.
|
|
|
|
try_files $uri $uri/ =404;
|
|
# Uncomment to enable naxsi on this location
|
|
# include /etc/nginx/naxsi.rules
|
|
}
|
|
|
|
# Proxy all docker REST API registry requests to the
|
|
# docker registry server.
|
|
location ^~ /v1/ {
|
|
proxy_pass ${DOCKER_REGISTRY_URL};
|
|
}
|
|
|
|
error_page 404 /404.html;
|
|
|
|
# redirect server error pages to the static page /50x.html
|
|
#
|
|
#error_page 500 502 503 504 /50x.html;
|
|
#location = /50x.html {
|
|
# root /usr/share/nginx/html;
|
|
#}
|
|
}
|
|
|
|
# HTTPS server
|
|
#
|
|
#server {
|
|
# listen 443;
|
|
# server_name localhost;
|
|
#
|
|
# root html;
|
|
# index index.html index.htm;
|
|
#
|
|
# ssl on;
|
|
# ssl_certificate cert.pem;
|
|
# ssl_certificate_key cert.key;
|
|
#
|
|
# ssl_session_timeout 5m;
|
|
#
|
|
# ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
|
|
# ssl_ciphers "HIGH:!aNULL:!MD5 or HIGH:!aNULL:!MD5:!3DES";
|
|
# ssl_prefer_server_ciphers on;
|
|
#
|
|
# location / {
|
|
# try_files $uri $uri/ =404;
|
|
# }
|
|
#}
|