Use regular version of nginx on Arch
/ terraform (push) Successful in 30s Details
/ ansible (push) Successful in 1m30s Details

`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:
Jake Howard 2024-02-29 19:46:32 +00:00
parent 8a1e21c79d
commit 0dcc3f7c30
Signed by: jake
GPG Key ID: 57AFB45680EDD477
4 changed files with 7 additions and 10 deletions

View File

@ -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 }};

View File

@ -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 }};

View File

@ -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;

View File

@ -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