diff options
| author | Luke Hoersten <[email protected]> | 2020-07-05 10:25:32 -0500 |
|---|---|---|
| committer | Luke Hoersten <[email protected]> | 2020-07-05 10:25:32 -0500 |
| commit | d67fdf8ed71f6927a00cf6bc812777091e5a026d (patch) | |
| tree | 65c745a68f570fa1f312123187f57cdb64c42bdf /oragono | |
| parent | 79880c1df8fd49110486051df059f259a1a7d08f (diff) | |
Added nginx and oragono HUP reloading to systemd handlers. Added nginx config.
Diffstat (limited to 'oragono')
| -rw-r--r-- | oragono/handlers/main.yaml | 4 | ||||
| -rw-r--r-- | oragono/tasks/main.yaml | 4 | ||||
| -rw-r--r-- | oragono/templates/nginx.conf.j2 | 7 | ||||
| -rw-r--r-- | oragono/templates/oragono.yaml.j2 | 4 |
4 files changed, 15 insertions, 4 deletions
diff --git a/oragono/handlers/main.yaml b/oragono/handlers/main.yaml index db381db..a45e622 100644 --- a/oragono/handlers/main.yaml +++ b/oragono/handlers/main.yaml @@ -3,3 +3,7 @@ - name: restart oragono become: yes systemd: name="oragono.service" state="restarted" daemon_reload="yes" + +- name: reload oragono + become: yes + systemd: name="oragono.service" state="reloaded" diff --git a/oragono/tasks/main.yaml b/oragono/tasks/main.yaml index f3cca91..1a06173 100644 --- a/oragono/tasks/main.yaml +++ b/oragono/tasks/main.yaml @@ -44,14 +44,14 @@ owner: "oragono" group: "oragono" mode: "0644" - notify: restart oragono + notify: reload oragono - name: copy motd file become: yes copy: src: "{{oragono_motd}}" dest: "/etc/oragono/oragono.motd" - notify: restart oragono + notify: reload oragono - name: install oragono service become: yes diff --git a/oragono/templates/nginx.conf.j2 b/oragono/templates/nginx.conf.j2 new file mode 100644 index 0000000..38719ec --- /dev/null +++ b/oragono/templates/nginx.conf.j2 @@ -0,0 +1,7 @@ +server { + listen 6697 ssl; + proxy_pass unix:/run/oragono/socket; + + ssl_certificate {{nginx_ssl_cert}}; + ssl_certificate_key {{nginx_ssl_privkey}}; +} diff --git a/oragono/templates/oragono.yaml.j2 b/oragono/templates/oragono.yaml.j2 index 2e5a1cf..5344683 100644 --- a/oragono/templates/oragono.yaml.j2 +++ b/oragono/templates/oragono.yaml.j2 @@ -288,7 +288,7 @@ server: # oragono will write files to disk under certain circumstances, e.g., # CPU profiling or data export. by default, these files will be written # to the working directory. set this to customize: - # output-path: "/home/oragono/out" + output-path: "/var/oragono" # account options accounts: @@ -606,7 +606,7 @@ opers: whois-line: "server admin" # custom hostname - vhost: "ops.{{oragono_network_name}}" + vhost: "opr.{{oragono_network_name}}" # modes are the modes to auto-set upon opering-up modes: +is acjknoqtuxv |
