noticket - updates fore firewall, fulfillr, etc.
This commit is contained in:
@@ -34,6 +34,7 @@
|
|||||||
group: "{{ podman_user }}"
|
group: "{{ podman_user }}"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
loop:
|
loop:
|
||||||
|
- "{{ assistant_server_name }}.https.conf"
|
||||||
- "{{ bookstack_server_name }}.https.conf"
|
- "{{ bookstack_server_name }}.https.conf"
|
||||||
- "{{ ci_server_name }}.https.conf"
|
- "{{ ci_server_name }}.https.conf"
|
||||||
- "{{ cloud_server_name }}.https.conf"
|
- "{{ cloud_server_name }}.https.conf"
|
||||||
@@ -55,6 +56,7 @@
|
|||||||
group: "{{ podman_user }}"
|
group: "{{ podman_user }}"
|
||||||
state: link
|
state: link
|
||||||
loop:
|
loop:
|
||||||
|
- "{{ assistant_server_name }}.https.conf"
|
||||||
- "{{ bookstack_server_name }}.https.conf"
|
- "{{ bookstack_server_name }}.https.conf"
|
||||||
- "{{ ci_server_name }}.https.conf"
|
- "{{ ci_server_name }}.https.conf"
|
||||||
- "{{ cloud_server_name }}.https.conf"
|
- "{{ cloud_server_name }}.https.conf"
|
||||||
|
|||||||
@@ -30,6 +30,11 @@
|
|||||||
# Zomboid
|
# Zomboid
|
||||||
- 16261/udp
|
- 16261/udp
|
||||||
- 16262/udp
|
- 16262/udp
|
||||||
|
# crafty
|
||||||
|
- 8443/tcp
|
||||||
|
# minecraft
|
||||||
|
- 25565/tcp
|
||||||
|
- 25565/udp
|
||||||
notify: restart firewalld
|
notify: restart firewalld
|
||||||
tags: firewall
|
tags: firewall
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
- import_tasks: containers/home/hass.yml
|
- import_tasks: containers/home/hass.yml
|
||||||
vars:
|
vars:
|
||||||
image: ghcr.io/home-assistant/home-assistant:2024.6.4
|
image: ghcr.io/home-assistant/home-assistant:2024.8.2
|
||||||
tags: hass
|
tags: hass
|
||||||
|
|
||||||
- import_tasks: containers/home/partkeepr.yml
|
- import_tasks: containers/home/partkeepr.yml
|
||||||
@@ -47,24 +47,24 @@
|
|||||||
- import_tasks: containers/home/photos.yml
|
- import_tasks: containers/home/photos.yml
|
||||||
vars:
|
vars:
|
||||||
db_image: docker.io/library/mariadb:10.8
|
db_image: docker.io/library/mariadb:10.8
|
||||||
image: docker.io/photoprism/photoprism:231021-ce
|
image: docker.io/photoprism/photoprism:240711-ce
|
||||||
tags: photos
|
tags: photos
|
||||||
|
|
||||||
- import_tasks: containers/home/cloud.yml
|
- import_tasks: containers/home/cloud.yml
|
||||||
vars:
|
vars:
|
||||||
db_image: docker.io/library/mariadb:10.6
|
db_image: docker.io/library/mariadb:10.6
|
||||||
image: docker.io/library/nextcloud:28.0.1-apache
|
image: docker.io/library/nextcloud:28.0.4-apache
|
||||||
tags: cloud
|
tags: cloud
|
||||||
|
|
||||||
- import_tasks: containers/skudak/cloud.yml
|
- import_tasks: containers/skudak/cloud.yml
|
||||||
vars:
|
vars:
|
||||||
db_image: docker.io/library/mariadb:10.6
|
db_image: docker.io/library/mariadb:10.6
|
||||||
image: docker.io/library/nextcloud:28.0.1-apache
|
image: docker.io/library/nextcloud:28.0.4-apache
|
||||||
tags: skudak, skudak-cloud
|
tags: skudak, skudak-cloud
|
||||||
|
|
||||||
- import_tasks: containers/debyltech/fulfillr.yml
|
- import_tasks: containers/debyltech/fulfillr.yml
|
||||||
vars:
|
vars:
|
||||||
image: "{{ aws_ecr_endpoint }}/fulfillr:20240101.1715"
|
image: "{{ aws_ecr_endpoint }}/fulfillr:20241010.0018"
|
||||||
tags: debyltech, fulfillr
|
tags: debyltech, fulfillr
|
||||||
|
|
||||||
- import_tasks: containers/home/nosql.yml
|
- import_tasks: containers/home/nosql.yml
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"snipcart_api_key": "{{ snipcart_api_key }}",
|
"snipcart_api_key": "{{ snipcart_api_key }}",
|
||||||
"shippo_api_key": "{{ shippo_api_key }}",
|
"easypost_api_key": "{{ easypost_api_key }}",
|
||||||
"label_file_type": "PNG",
|
"label_file_type": "PNG",
|
||||||
"aws": {
|
"aws": {
|
||||||
"access_key": "{{ fulfillr_access_key }}",
|
"access_key": "{{ fulfillr_access_key }}",
|
||||||
|
|||||||
@@ -1,24 +1,13 @@
|
|||||||
upstream hass {
|
|
||||||
server 127.0.0.1:8123;
|
|
||||||
}
|
|
||||||
server {
|
server {
|
||||||
resolver 192.168.1.10 ipv6=off;
|
|
||||||
modsecurity on;
|
|
||||||
modsecurity_rules_file /etc/nginx/modsec_includes.conf;
|
|
||||||
|
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name {{ assistant_server_name }};
|
server_name {{ assistant_server_name }};
|
||||||
|
|
||||||
|
location '/.well-known/acme-challenge' {
|
||||||
|
default_type "text/plain";
|
||||||
|
root /srv/http/letsencrypt;
|
||||||
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
allow 192.168.0.0/16;
|
return 301 https://$host$request_uri;
|
||||||
allow 127.0.0.1;
|
|
||||||
deny all;
|
|
||||||
|
|
||||||
proxy_set_header X-Forwarded-For $remote_addr;
|
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
|
||||||
proxy_set_header Connection $connection_upgrade;
|
|
||||||
|
|
||||||
proxy_buffering off;
|
|
||||||
proxy_pass http://hass;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,60 @@
|
|||||||
|
upstream assistant {
|
||||||
|
server 127.0.0.1:8123;
|
||||||
|
}
|
||||||
|
|
||||||
|
geo $local_access {
|
||||||
|
default 0;
|
||||||
|
192.168.1.1 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
modsecurity on;
|
||||||
|
modsecurity_rules_file /etc/nginx/modsec_includes.conf;
|
||||||
|
|
||||||
|
listen 443 ssl http2;
|
||||||
|
listen [::]:443 ssl http2;
|
||||||
|
server_name assistant.bdebyl.net;
|
||||||
|
|
||||||
|
ssl_certificate /etc/letsencrypt/live/{{ assistant_server_name }}/fullchain.pem;
|
||||||
|
ssl_certificate_key /etc/letsencrypt/live/{{ assistant_server_name }}/privkey.pem;
|
||||||
|
ssl_trusted_certificate /etc/letsencrypt/live/{{ assistant_server_name }}/fullchain.pem;
|
||||||
|
ssl_dhparam /etc/nginx/ssl/dhparam.pem;
|
||||||
|
|
||||||
|
ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384;
|
||||||
|
ssl_prefer_server_ciphers off;
|
||||||
|
ssl_protocols TLSv1.2 TLSv1.3;
|
||||||
|
ssl_session_cache shared:SSL:10m;
|
||||||
|
ssl_session_tickets off;
|
||||||
|
ssl_session_timeout 1d;
|
||||||
|
ssl_stapling on;
|
||||||
|
ssl_stapling_verify on;
|
||||||
|
|
||||||
|
resolver 9.9.9.9 valid=60s ipv6=off;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
if ($local_access = 1) {
|
||||||
|
access_log off;
|
||||||
|
}
|
||||||
|
add_header Allow "GET, POST, HEAD" always;
|
||||||
|
add_header Referrer-Policy "same-origin" always;
|
||||||
|
add_header Strict-Transport-Security "max-age=630720000; includeSubDomains" always;
|
||||||
|
add_header X-Content-Type-Options "nosniff" always;
|
||||||
|
|
||||||
|
# Sent from upstream:
|
||||||
|
# add_header X-Frame-Options "SAMEORIGIN";
|
||||||
|
# add_header X-XSS-Protection "1; mode=block";
|
||||||
|
|
||||||
|
proxy_set_header Host $http_host;
|
||||||
|
proxy_set_header X-Forwarded-For $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection $connection_upgrade;
|
||||||
|
|
||||||
|
proxy_buffering off;
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
proxy_pass http://assistant;
|
||||||
|
proxy_redirect off;
|
||||||
|
|
||||||
|
chunked_transfer_encoding off;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -3,7 +3,7 @@ geo $whitelisted {
|
|||||||
192.168.0.0/16 1;
|
192.168.0.0/16 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
upstream fulfillr {
|
upstream fulfillr-api {
|
||||||
server 127.0.0.1:9054;
|
server 127.0.0.1:9054;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -34,7 +34,7 @@ server {
|
|||||||
return 302 $scheme://bdebyl.net$request_uri;
|
return 302 $scheme://bdebyl.net$request_uri;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
location /api {
|
||||||
add_header Referrer-Policy "same-origin" always;
|
add_header Referrer-Policy "same-origin" always;
|
||||||
# add_header Strict-Transport-Security "max-age=630720000; includeSubDomains" always;
|
# add_header Strict-Transport-Security "max-age=630720000; includeSubDomains" always;
|
||||||
add_header X-Content-Type-Options "nosniff" always;
|
add_header X-Content-Type-Options "nosniff" always;
|
||||||
@@ -49,7 +49,7 @@ server {
|
|||||||
|
|
||||||
proxy_buffering off;
|
proxy_buffering off;
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_pass http://fulfillr;
|
proxy_pass http://fulfillr-api;
|
||||||
proxy_redirect off;
|
proxy_redirect off;
|
||||||
|
|
||||||
chunked_transfer_encoding off;
|
chunked_transfer_encoding off;
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user