debyltech updates, satisfactory
This commit is contained in:
21
ansible/roles/podman/templates/debyltech/config.json.j2
Normal file
21
ansible/roles/podman/templates/debyltech/config.json.j2
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"snipcart_api_key": "{{ snipcart_api_key }}",
|
||||
"shippo_api_key": "{{ shippo_api_key }}",
|
||||
"weight_unit": "g",
|
||||
"dimension_unit": "cm",
|
||||
"manufacture_country": "US",
|
||||
"sender_address": {
|
||||
"name": "de Byl Technologies LLC",
|
||||
"address1": "176 Lull Rd",
|
||||
"city": "Weare",
|
||||
"state": "NH",
|
||||
"country": "US",
|
||||
"zip": "03281",
|
||||
"email": "sales@debyltech.com"
|
||||
},
|
||||
"default_parcel": {
|
||||
"length": "10",
|
||||
"width": "19",
|
||||
"height": "16.5"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
server {
|
||||
modsecurity on;
|
||||
modsecurity_rules_file /etc/nginx/modsec_includes.conf;
|
||||
|
||||
listen 80;
|
||||
server_name {{ api_debyltech_server_name }};
|
||||
|
||||
location '/.well-known/acme-challenge' {
|
||||
default_type "text/plain";
|
||||
root /srv/http/letsencrypt;
|
||||
}
|
||||
|
||||
location / {
|
||||
return 302 https://$host$request_uri;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
upstream apidebyltech {
|
||||
server 127.0.0.1:8040;
|
||||
}
|
||||
|
||||
server {
|
||||
modsecurity on;
|
||||
modsecurity_rules_file /etc/nginx/modsec_includes.conf;
|
||||
|
||||
resolver 127.0.0.1 127.0.0.53 9.9.9.9 valid=60s;
|
||||
|
||||
listen 443 ssl http2;
|
||||
server_name {{ api_debyltech_server_name }};
|
||||
client_max_body_size 500M;
|
||||
|
||||
ssl_certificate /etc/letsencrypt/live/{{ api_debyltech_server_name }}/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/{{ api_debyltech_server_name }}/privkey.pem;
|
||||
ssl_trusted_certificate /etc/letsencrypt/live/{{ api_debyltech_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;
|
||||
|
||||
location / {
|
||||
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;
|
||||
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
|
||||
proxy_buffering off;
|
||||
proxy_http_version 1.1;
|
||||
proxy_pass http://apidebyltech;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user