src.nth.io/

summaryrefslogtreecommitdiff
path: root/oragono/templates
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2020-09-05 19:27:02 -0500
committerLuke Hoersten <[email protected]>2020-09-05 19:27:02 -0500
commit95c0693bc586b331c4d140b9e85872159bc02988 (patch)
treedbd6aa4dbcd08ec066eacd750b7ce34f92898308 /oragono/templates
parentc9c617dd1efa1d86a7e6e37d8244bc2af0ea8c69 (diff)
Moved oragono socket to more persistent location.
Diffstat (limited to 'oragono/templates')
-rw-r--r--oragono/templates/nginx.conf.j22
-rw-r--r--oragono/templates/oragono.service.j220
-rw-r--r--oragono/templates/oragono.yaml.j22
3 files changed, 2 insertions, 22 deletions
diff --git a/oragono/templates/nginx.conf.j2 b/oragono/templates/nginx.conf.j2
index 31089c8..2cedd56 100644
--- a/oragono/templates/nginx.conf.j2
+++ b/oragono/templates/nginx.conf.j2
@@ -1,6 +1,6 @@
server {
listen 6697 ssl;
- proxy_pass unix:/run/oragono/socket;
+ proxy_pass unix:/var/oragono/oragono.socket;
proxy_protocol on;
ssl_certificate {{nginx_ssl_cert}};
diff --git a/oragono/templates/oragono.service.j2 b/oragono/templates/oragono.service.j2
deleted file mode 100644
index f751ec0..0000000
--- a/oragono/templates/oragono.service.j2
+++ /dev/null
@@ -1,20 +0,0 @@
-[Unit]
-Description=oragono
-After=network.target
-# If you are using MySQL for history storage, comment out the above line
-# and uncomment these two instead (you must independently install and configure
-# MySQL for your system):
-# Wants=mysql.service
-# After=network.target mysql.service
-
-[Service]
-Type=simple
-User=oragono
-WorkingDirectory=/var/oragono
-ExecStart=/usr/local/bin/oragono run --conf /etc/oragono/oragono.yaml
-ExecReload=/bin/kill -HUP $MAINPID
-Restart=on-failure
-LimitNOFILE=1048576
-
-[Install]
-WantedBy=multi-user.target
diff --git a/oragono/templates/oragono.yaml.j2 b/oragono/templates/oragono.yaml.j2
index 5344683..3619c6a 100644
--- a/oragono/templates/oragono.yaml.j2
+++ b/oragono/templates/oragono.yaml.j2
@@ -58,7 +58,7 @@ server:
# proxy: false
# Example of a Unix domain socket for proxying:
- "/run/oragono/socket":
+ "/var/oragono/oragono.socket":
# Example of a Tor listener: any connection that comes in on this listener will
# be considered a Tor connection. It is strongly recommended that this listener