localhost nginx

This commit is contained in:
nora 2022-09-01 20:49:33 +02:00
parent ec93c7df6c
commit 5ec5a3e64e
2 changed files with 42 additions and 5 deletions

26
nginx/nginx.local.conf Normal file
View file

@ -0,0 +1,26 @@
events {
worker_connections 512;
}
http {
server {
listen 80;
server_name "nilstrieb.dev";
return 302 http://blog.nilstrieb.dev$request_uri;
}
server {
listen 80;
server_name "private-docker-registry.nilstrieb.dev";
location / {
return 404 'No registry here...';
#proxy_pass http://registry:5000/;
}
}
server_tokens off;
}