Explorar el Código

add config files to make deploying easier

i use these to have it running on a custom domain (via nginx), but still
running without privileges. (as user nobody, on a higher port.)

to actually use this configuration, you'd have to have dnsmasq and nginx
installed, so i should probably write a post about that.
Lucas Stadler %!s(int64=11) %!d(string=hace) años
padre
commit
9bdb85391c

+ 3 - 0
go/linguaevalia/etc/dnsmasq.conf

@ -0,0 +1,3 @@
1
# configure a custom domain for use with nginx
2
3
address=/eval.ia/127.0.0.1

+ 10 - 0
go/linguaevalia/etc/linguaevalia.service

@ -0,0 +1,10 @@
1
[Unit]
2
Description=Lingua evalia
3
4
[Service]
5
User=nobody
6
Group=nobody
7
ExecStart=/home/lu/k/lp/go/linguaevalia/linguaevalia server -p 8042
8
9
[Install]
10
WantedBy=multi-user.target

+ 10 - 0
go/linguaevalia/etc/nginx.conf

@ -0,0 +1,10 @@
1
# nginx configuration as a subdomain
2
3
server {
4
       listen 80;
5
       server_name eval.ia;
6
7
       location / {
8
                proxy_pass http://localhost:8042;
9
       }
10
}