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 }}
|
||||
|
||||
server {
|
||||
listen 443 ssl;
|
||||
listen [::]:443 ssl;
|
||||
http2 on;
|
||||
listen 443 ssl http2;
|
||||
listen [::]:443 ssl http2;
|
||||
|
||||
server_name {{ server_name }};
|
||||
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 %}
|
||||
server {
|
||||
listen 8800 ssl proxy_protocol;
|
||||
http2 on;
|
||||
listen 8800 ssl http2 proxy_protocol;
|
||||
|
||||
server_name {{ domain }};
|
||||
|
||||
|
|
|
@ -3,8 +3,7 @@
|
|||
limit_req_zone $binary_remote_addr zone=headscale:10m rate=1r/m;
|
||||
|
||||
server {
|
||||
listen 8888 ssl proxy_protocol;
|
||||
http2 on;
|
||||
listen 8888 ssl http2 proxy_protocol;
|
||||
|
||||
server_name headscale.jakehoward.tech;
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
- name: Install nginx
|
||||
package:
|
||||
name: "{{ 'nginx-mainline' if ansible_os_family == 'Archlinux' else 'nginx' }}"
|
||||
name: nginx
|
||||
become: true
|
||||
|
||||
- name: Install nginx modules
|
||||
|
@ -17,8 +17,8 @@
|
|||
kewlfft.aur.aur:
|
||||
name: "{{ item }}"
|
||||
loop:
|
||||
- nginx-mainline-mod-headers-more
|
||||
- nginx-mainline-mod-brotli
|
||||
- nginx-mod-headers-more
|
||||
- nginx-mod-brotli
|
||||
when: ansible_os_family == 'Archlinux'
|
||||
become: true
|
||||
|
||||
|
|
Loading…
Reference in a new issue