commit 978c1fd638ab17e2dfc926eb05d86c57bd75fd00 Author: Knut Ahlers Date: Tue Oct 11 12:32:28 2016 +0200 Simple redirector diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..5beb180 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,6 @@ +FROM nginx + +ADD nginx.conf /nginx.conf + +ENTRYPOINT ["nginx"] +CMD ["-g", "daemon off;", "-p", "/", "-c", "nginx.conf"] diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..67bf646 --- /dev/null +++ b/Makefile @@ -0,0 +1,3 @@ +ci: + docker build --pull --no-cache -t registry.luzifer.io/redir-luzifer.io . + docker push registry.luzifer.io/redir-luzifer.io diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..fa3b963 --- /dev/null +++ b/nginx.conf @@ -0,0 +1,23 @@ +worker_processes 2; +error_log ./nginx.error.log; +worker_rlimit_nofile 8192; +pid nginx.pid; + +events { + worker_connections 1024; + multi_accept on; +} + +http { + access_log off; + + server { + listen 80; + server_name localhost; + + location / { + return 301 https://ahlers.me$request_uri; + } + } +} +