Proxy redirect all host to jenkins.io
This commit is contained in:
parent
c464001b56
commit
e5215e1ef8
|
@ -7,7 +7,7 @@ build:
|
|||
@docker build -t '$(DOCKER_IMAGE):dev-$(DOCKER_TAG)' .
|
||||
|
||||
run:
|
||||
@cd .. && docker run -i -t --rm -v `pwd`/build/_site/:/usr/share/nginx/html -p 80:80 $(DOCKER_IMAGE)
|
||||
@cd .. && docker run -i -t --rm -v `pwd`/build/_site/:/usr/share/nginx/html -p 80:80 $(DOCKER_IMAGE):dev-$(DOCKER_TAG)
|
||||
|
||||
clean:
|
||||
docker rmi $(DOCKER_IMAGE):dev-$(DOCKER_TAG)
|
||||
|
|
|
@ -2,6 +2,10 @@ server {
|
|||
listen 80;
|
||||
server_name localhost;
|
||||
|
||||
if ( $host != 'jenkins.io') {
|
||||
return 301 $scheme://jenkins.io$request_uri;
|
||||
}
|
||||
|
||||
location / {
|
||||
root /usr/share/nginx/html;
|
||||
index index.html index.htm;
|
||||
|
|
Loading…
Reference in New Issue