noticket - updates for fulfillr

This commit is contained in:
Bastian de Byl
2024-10-13 20:19:21 -04:00
parent 8aba20f8ea
commit 19afacf190
5 changed files with 31 additions and 4 deletions

View File

@@ -25,6 +25,7 @@
- "{{ nginx_path }}/etc:/etc/nginx:ro" - "{{ nginx_path }}/etc:/etc/nginx:ro"
- "/srv/http/letsencrypt:/srv/http/letsencrypt:z" - "/srv/http/letsencrypt:/srv/http/letsencrypt:z"
- "/etc/letsencrypt:/etc/letsencrypt:ro" - "/etc/letsencrypt:/etc/letsencrypt:ro"
- "/usr/local/share/fulfillr-site:/usr/local/share/fulfillr-site:ro"
- name: create systemd startup job for nginx - name: create systemd startup job for nginx
include_tasks: podman/systemd-generate.yml include_tasks: podman/systemd-generate.yml

View File

@@ -1,6 +1,15 @@
--- ---
- import_tasks: ecr/podman-ecr-login.yml - import_tasks: ecr/podman-ecr-login.yml
- name: create nginx fulfillr-site directory
become: true
ansible.builtin.file:
path: /usr/local/share/fulfillr-site
state: directory
owner: "fedora"
group: "wheel"
mode: 0755
- name: create fulfillr host directory volumes - name: create fulfillr host directory volumes
become: true become: true
ansible.builtin.file: ansible.builtin.file:

View File

@@ -64,7 +64,7 @@
- import_tasks: containers/debyltech/fulfillr.yml - import_tasks: containers/debyltech/fulfillr.yml
vars: vars:
image: "{{ aws_ecr_endpoint }}/fulfillr:20241010.1500" image: "{{ aws_ecr_endpoint }}/fulfillr:20241011.1840"
tags: debyltech, fulfillr tags: debyltech, fulfillr
- import_tasks: containers/home/nosql.yml - import_tasks: containers/home/nosql.yml

View File

@@ -1,7 +1,6 @@
{ {
"snipcart_api_key": "{{ snipcart_api_key }}", "snipcart_api_key": "{{ snipcart_api_key }}",
"easypost_api_key": "{{ easypost_api_key }}", "easypost_api_key": "{{ easypost_api_key }}",
"label_file_type": "PNG",
"aws": { "aws": {
"access_key": "{{ fulfillr_access_key }}", "access_key": "{{ fulfillr_access_key }}",
"secret_key": "{{ fulfillr_secret_key }}", "secret_key": "{{ fulfillr_secret_key }}",
@@ -11,5 +10,16 @@
"tax": { "tax": {
"ein": "{{ fulfillr_tax_ein }}", "ein": "{{ fulfillr_tax_ein }}",
"ioss": "{{ fulfillr_tax_ioss }}" "ioss": "{{ fulfillr_tax_ioss }}"
},
"sender_address": {
"city": "Newbury",
"country": "US",
"email": "sales@debyltech.com",
"name": "de Byl Technologies LLC",
"phone": "6034160859",
"state": "NH",
"street1": "976 Route 103",
"street2": "Unit 509",
"zip": "03255"
} }
} }

View File

@@ -34,8 +34,11 @@ server {
return 302 $scheme://bdebyl.net$request_uri; return 302 $scheme://bdebyl.net$request_uri;
} }
root /usr/local/share/fulfillr-site;
index index.html;
location /api { location /api {
add_header Access-Control-Allow-Origin "$http_origin"; add_header Access-Control-Allow-Origin * always;
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;
@@ -55,4 +58,8 @@ server {
chunked_transfer_encoding off; chunked_transfer_encoding off;
} }
location / {
try_files $uri $uri/ =404;
}
} }