add nginx config

master
an 2019-05-29 23:13:03 -04:00
parent 87f5b27559
commit 88c512dba2
3 changed files with 46 additions and 3 deletions

View File

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

View File

@ -1,7 +1,7 @@
<icecast>
<location>Ohio</location>
<admin>marrub@greyserv.net</admin>
<hostname>heavenisin.space</hostname>
<hostname>mu.heavenisin.space</hostname>
<!-- don't disable, needed for images on the status page etc. -->
<fileserve>1</fileserve>

42
nginx.conf Normal file
View File

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