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:
commit
978c1fd638
3 changed files with 32 additions and 0 deletions
6
Dockerfile
Normal file
6
Dockerfile
Normal 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
3
Makefile
Normal 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
23
nginx.conf
Normal 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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue