claude go reimplement

This commit is contained in:
tyler committed 2026-10-26 20:30:43 -07:00
1 parent 4bcb924158
commit f523c79618
83 files changed
+3714 -3454

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
# apache site for kjv-api (needs mod_proxy, mod_proxy_http and mod_headers:
# sudo a2enmod proxy proxy_http headers)
# Change domain.tld to your domain, copy to /etc/apache2/sites-available/ and a2ensite it.
# For https: sudo certbot --apache -d domain.tld
<VirtualHost *:80>
ServerName domain.tld
ProxyPreserveHost On
ProxyRequests Off
ProxyVia Off
# the program limits how fast each visitor can make plans and shortcodes by this address
RequestHeader set X-Real-IP "%{REMOTE_ADDR}s"
ProxyPass / http://127.0.0.1:1611/
ProxyPassReverse / http://127.0.0.1:1611/
</VirtualHost>
+21
View File
@@ -0,0 +1,21 @@
# nginx site for kjv-api. Change example.com to your domain, then:
# sudo cp kjv-api.nginx.conf /etc/nginx/sites-available/kjv-api
# sudo ln -s /etc/nginx/sites-available/kjv-api /etc/nginx/sites-enabled/
# sudo nginx -t && sudo systemctl reload nginx
# sudo certbot --nginx -d example.com (adds https to this file for you)
#
# Already have a site? Copy just the location block into it.
server {
listen 80;
server_name example.com;
location / {
proxy_pass http://127.0.0.1:1611;
proxy_set_header Host $host;
# the program limits how fast each visitor can make plans and shortcodes by this address
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
+19
View File
@@ -0,0 +1,19 @@
[Unit]
Description=KJV API endpoint at localhost port 1611
# A systemd user service, no root needed. It runs ~/kjv-api/kjv-api with the
# database next to it. Install with:
# mkdir -p ~/.config/systemd/user && cp kjv-api.service ~/.config/systemd/user/
# systemctl --user daemon-reload && systemctl --user enable --now kjv-api
# sudo loginctl enable-linger $USER (keeps it running while logged out, and starts it at boot)
[Service]
ExecStart=%h/kjv-api/kjv-api -db %h/kjv-api/kjv.db -addr 127.0.0.1:1611
# Optional settings (KJV_SECRET_API_KEY, KJV_SERMON_DB, KJV_SEMANTIC_ADDR), one NAME=value per line
EnvironmentFile=-%h/kjv-api/kjv-api.env
Restart=on-failure
NoNewPrivileges=yes
UMask=0077
[Install]
WantedBy=default.target