m
This commit is contained in:
@@ -29,6 +29,11 @@ server {
|
|||||||
chunked_transfer_encoding on;
|
chunked_transfer_encoding on;
|
||||||
|
|
||||||
location /v2/ {
|
location /v2/ {
|
||||||
|
add_header Access-Control-Allow-Origin "https://registryui.zinomedia.de";
|
||||||
|
add_header Access-Control-Allow-Credentials "true";
|
||||||
|
add_header Access-Control-Allow-Headers "Authorization, Accept, Cache-Control";
|
||||||
|
add_header Access-Control-Allow-Methods "HEAD, GET, OPTIONS, DELETE";
|
||||||
|
|
||||||
# Do not allow connections from docker 1.5 and earlier
|
# Do not allow connections from docker 1.5 and earlier
|
||||||
# docker pre-1.6.0 did not properly set the user agent on ping, catch "Go *" user agents
|
# docker pre-1.6.0 did not properly set the user agent on ping, catch "Go *" user agents
|
||||||
if ($http_user_agent ~ "^(docker\/1\.(3|4|5(?!\.[0-9]-dev))|Go ).*$" ) {
|
if ($http_user_agent ~ "^(docker\/1\.(3|4|5(?!\.[0-9]-dev))|Go ).*$" ) {
|
||||||
|
|||||||
@@ -21,10 +21,6 @@ server {
|
|||||||
|
|
||||||
location / {
|
location / {
|
||||||
add_header Content-Security-Policy "default-src * 'unsafe-inline' 'unsafe-eval'; script-src * 'unsafe-inline' 'unsafe-eval'; img-src * data:; style-src * 'unsafe-inline'; font-src * data:;" always;
|
add_header Content-Security-Policy "default-src * 'unsafe-inline' 'unsafe-eval'; script-src * 'unsafe-inline' 'unsafe-eval'; img-src * data:; style-src * 'unsafe-inline'; font-src * data:;" always;
|
||||||
add_header Access-Control-Allow-Origin "https://registry.zinomedia.de";
|
|
||||||
add_header Access-Control-Allow-Credentials "true";
|
|
||||||
add_header Access-Control-Allow-Headers "Authorization, Accept, Cache-Control";
|
|
||||||
add_header Access-Control-Allow-Methods "HEAD, GET, OPTIONS, DELETE";
|
|
||||||
|
|
||||||
resolver 127.0.0.11;
|
resolver 127.0.0.11;
|
||||||
set $upstream "http://registryui:80";
|
set $upstream "http://registryui:80";
|
||||||
|
|||||||
Reference in New Issue
Block a user