1
0
Fork 0
mirror of https://github.com/Luzifer/redir-luzifer.io.git synced 2024-10-18 06:24:19 +00:00

Simple redirector

This commit is contained in:
Knut Ahlers 2016-10-11 12:32:28 +02:00
commit 978c1fd638
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E
3 changed files with 32 additions and 0 deletions

6
Dockerfile Normal file
View file

@ -0,0 +1,6 @@
FROM nginx
ADD nginx.conf /nginx.conf
ENTRYPOINT ["nginx"]
CMD ["-g", "daemon off;", "-p", "/", "-c", "nginx.conf"]

3
Makefile Normal file
View file

@ -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

23
nginx.conf Normal file
View file

@ -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;
}
}
}