diff --git a/copy_scripts.sh b/copy_scripts.sh index cbe2495..d806d85 100755 --- a/copy_scripts.sh +++ b/copy_scripts.sh @@ -17,9 +17,10 @@ $HOME/.vimrc vimrc $HOME/.xprofile xprofile $HOME/.zshrc zshrc $HOME/src/scripts/* . -/etc/motsognir.conf motsognir.conf -/etc/systemd/network/* . /etc/icecast.xml icecast.xml +/etc/motsognir.conf motsognir.conf +/etc/nginx/nginx.conf nginx.conf +/etc/systemd/network/* . /mnt/d/w2/Output/_dlscr/bookmark_get.ps1 bookmark_get.ps1 /usr/share/X11/xkb/symbols/progm progm.xkb END diff --git a/icecast.xml b/icecast.xml index 679dbaa..a6489cb 100644 --- a/icecast.xml +++ b/icecast.xml @@ -1,7 +1,7 @@ Ohio marrub@greyserv.net - heavenisin.space + mu.heavenisin.space 1 diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..3b7ca88 --- /dev/null +++ b/nginx.conf @@ -0,0 +1,42 @@ +worker_processes 1; + +events { + worker_connections 1024; +} + +http { + include mime.types; + default_type application/octet-stream; + sendfile on; + keepalive_timeout 65; + gzip on; + + server { + listen 80; + server_name heavenisin.space; + + location / { + root /srv/http/pub; + index index.html index.htm; + } + + error_page 500 502 503 504 /50x.html; + location = /50x.html { + root /usr/share/nginx/html; + } + } + + server { + listen 80; + server_name mu.heavenisin.space; + + location / { + proxy_pass http://127.0.0.1:8000/; + } + + error_page 500 502 503 504 /50x.html; + location = /50x.html { + root /usr/share/nginx/html; + } + } +}