Use regular version of nginx on Arch
`nginx-mainline` requires modules be recompiled each time, and isn't handled automatically. It's still a very new and maintained release.
This commit is contained in:
parent
8a1e21c79d
commit
0dcc3f7c30
4 changed files with 7 additions and 10 deletions
|
@ -1,9 +1,8 @@
|
||||||
# {{ ansible_managed }}
|
# {{ ansible_managed }}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 443 ssl;
|
listen 443 ssl http2;
|
||||||
listen [::]:443 ssl;
|
listen [::]:443 ssl http2;
|
||||||
http2 on;
|
|
||||||
|
|
||||||
server_name {{ server_name }};
|
server_name {{ server_name }};
|
||||||
set $upstream {{ upstream }};
|
set $upstream {{ upstream }};
|
||||||
|
|
|
@ -4,8 +4,7 @@ proxy_cache_path /var/lib/nginx/cache levels=1:2 keys_zone=cdncache:20m max_size
|
||||||
|
|
||||||
{% for domain in cdn_domains %}
|
{% for domain in cdn_domains %}
|
||||||
server {
|
server {
|
||||||
listen 8800 ssl proxy_protocol;
|
listen 8800 ssl http2 proxy_protocol;
|
||||||
http2 on;
|
|
||||||
|
|
||||||
server_name {{ domain }};
|
server_name {{ domain }};
|
||||||
|
|
||||||
|
|
|
@ -3,8 +3,7 @@
|
||||||
limit_req_zone $binary_remote_addr zone=headscale:10m rate=1r/m;
|
limit_req_zone $binary_remote_addr zone=headscale:10m rate=1r/m;
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 8888 ssl proxy_protocol;
|
listen 8888 ssl http2 proxy_protocol;
|
||||||
http2 on;
|
|
||||||
|
|
||||||
server_name headscale.jakehoward.tech;
|
server_name headscale.jakehoward.tech;
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
- name: Install nginx
|
- name: Install nginx
|
||||||
package:
|
package:
|
||||||
name: "{{ 'nginx-mainline' if ansible_os_family == 'Archlinux' else 'nginx' }}"
|
name: nginx
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
- name: Install nginx modules
|
- name: Install nginx modules
|
||||||
|
@ -17,8 +17,8 @@
|
||||||
kewlfft.aur.aur:
|
kewlfft.aur.aur:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
loop:
|
loop:
|
||||||
- nginx-mainline-mod-headers-more
|
- nginx-mod-headers-more
|
||||||
- nginx-mainline-mod-brotli
|
- nginx-mod-brotli
|
||||||
when: ansible_os_family == 'Archlinux'
|
when: ansible_os_family == 'Archlinux'
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue