Compare commits

...
4 Commits
Author SHA1 Message Date
tanshu cf680cd254 Version Bump v15.0.4 2026-09-01 07:45:23 +05:30
tanshu 80d21ec31e Minor fixes. Logs should now show the real ip address not the caddy container ip. 2026-09-01 02:15:01 +00:00
tanshu 4377016cda Version Bump v15.0.3 2026-08-31 12:11:38 +05:30
tanshu 67209886b9 current trixie does not have yarn 2026-08-31 06:41:31 +00:00
13 changed files with 25 additions and 17 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
FROM node:current-trixie-slim AS base
FROM node:lts-trixie-slim AS base
# Install dependencies only when needed
FROM base AS deps
@@ -11,7 +11,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
# Install dependencies based on the preferred package manager
COPY bookie/package.json bookie/yarn.lock* bookie/package-lock.json* bookie/pnpm-lock.yaml* ./
RUN \
if [ -f yarn.lock ]; then corepack enable yarn && yarn --frozen-lockfile; \
if [ -f yarn.lock ]; then yarn --frozen-lockfile; \
elif [ -f package-lock.json ]; then npm ci; \
elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm i --frozen-lockfile; \
else echo "Lockfile not found." && exit 1; \
@@ -23,7 +23,7 @@ COPY --from=deps /app/node_modules ./node_modules
COPY /bookie ./
RUN \
if [ -f yarn.lock ]; then corepack enable yarn && yarn run build; \
if [ -f yarn.lock ]; then yarn run build; \
elif [ -f package-lock.json ]; then npm run build; \
elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm run build; \
else echo "Lockfile not found." && exit 1; \
+3 -3
View File
@@ -6,9 +6,9 @@ SQLALCHEMY_DATABASE_URI=postgresql+psycopg://postgres:123456@postgres:5432/petty
MODULE_NAME=barker.main
PROJECT_NAME=barker
MAX_WORKERS=4
NATS_URL=nats://{{ nats_host }}:{{ nats_port }}
SUBJECT="barker.print"
STREAM="barker_print_stream"
NATS_URL={{ nats_url }}
SUBJECT=barker.print
STREAM=barker_print_stream
SECRET_KEY={{ secret_key }}
MIDDLEWARE_SECRET_KEY={{ middleware_key }}
ALGORITHM=HS256
+1 -1
View File
@@ -24,4 +24,4 @@
create: true
mode: "0644"
when: not caddy_snippet_present
notify: Restart caddy container
notify: Reload Caddy configuration
+1
View File
@@ -6,3 +6,4 @@ middleware_key: c4b0b98ff9
host: knox.mozimo.in
host_directory: "barker-{{ app_name }}"
docker_network: "{{ host_directory }}_net"
nats_url: "nats://clair.lan.tanshu.com:4222"
+1 -1
View File
@@ -1 +1 @@
__version__ = "15.0.2"
__version__ = "15.0.4"
+1 -1
View File
@@ -166,4 +166,4 @@ app.frontend("/", directory="frontend", check_dir="auto")
def init() -> None:
uvicorn.run(app, host=settings.HOST, port=9995)
uvicorn.run(app, host=settings.HOST, port=settings.PORT)
+6
View File
@@ -30,6 +30,12 @@ port = os.getenv("PORT", "9995")
bind_env = os.getenv("BIND", None)
use_bind = bind_env if bind_env else f"{host}:{port}"
# Tell Gunicorn to trust X-Forwarded-For headers from the reverse proxy
forwarded_allow_ips = "*"
# Optional: Ensure proxy protocol is recognized
proxy_allow_ips = "*"
loglevel = os.getenv("LOG_LEVEL", "info")
accesslog_var = os.getenv("ACCESS_LOG", "-")
accesslog = accesslog_var or None
+1 -1
View File
@@ -1,6 +1,6 @@
[project]
name = "barker"
version = "15.0.2"
version = "15.0.4"
description = "Point of Sale for a restaurant"
requires-python = ">=3.14"
authors = [{ name = "tanshu", email = "git@tanshu.com" }]
+1 -1
View File
@@ -231,7 +231,7 @@ wheels = [
[[package]]
name = "barker"
version = "15.0.2"
version = "15.0.4"
source = { editable = "." }
dependencies = [
{ name = "aiohttp" },
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "bookie",
"version": "15.0.2",
"version": "15.0.4",
"scripts": {
"ng": "ng",
"start": "ng serve",
+1 -1
View File
@@ -1,7 +1,7 @@
export const environment = {
production: true,
ACCESS_TOKEN_REFRESH_MINUTES: 10, // refresh token 10 minutes before expiry
version: '15.0.2',
version: '15.0.4',
};
export const dateFormat = {
+3 -2
View File
@@ -1,6 +1,7 @@
[Unit]
Description=Frank container service
After=docker.service netbird.service
BindsTo=dev-usb-lp0.device
After=docker.service netbird.service dev-usb-lp0.device
Wants=network-online.target docker.socket netbird.service
Requires=docker.socket netbird.service
PartOf=netbird.service
@@ -12,4 +13,4 @@ ExecStart=/usr/bin/docker start -a frank
ExecStop=/usr/bin/docker stop -t 10 frank
[Install]
WantedBy=multi-user.target
WantedBy=multi-user.target dev-usb-lp0.device
+2 -2
View File
@@ -1,5 +1,5 @@
#! /usr/bin/env bash
set -e
echo uv run taskiq worker worker:broker
uv run taskiq worker worker:broker
echo "Starting taskiq worker..."
exec uv run taskiq worker worker:broker