summaryrefslogtreecommitdiff
path: root/nginx_amt-jb.conf
diff options
context:
space:
mode:
authorMax Nanis2026-02-19 02:43:23 -0500
committerMax Nanis2026-02-19 02:43:23 -0500
commitf0f96f83c2630e890a2cbcab53f77fd4c37e1684 (patch)
treec6d2cb092e76bf5d499e0ea9949508d6b22164fd /nginx_amt-jb.conf
parent3eaa56f0306ead818f64c3d99fc6d230d9b970a4 (diff)
downloadamt-jb-master.tar.gz
amt-jb-master.zip
Models, Project files, some pytests, requirements.. etcHEADmaster
Diffstat (limited to 'nginx_amt-jb.conf')
-rw-r--r--nginx_amt-jb.conf43
1 files changed, 43 insertions, 0 deletions
diff --git a/nginx_amt-jb.conf b/nginx_amt-jb.conf
new file mode 100644
index 0000000..1bc770a
--- /dev/null
+++ b/nginx_amt-jb.conf
@@ -0,0 +1,43 @@
+upstream uvicorn {
+ server 127.0.0.1:8000 max_conns=64;
+}
+
+server {
+ listen 8080;
+ listen [::]:8080;
+ server_name jamesbillings67.com www.jamesbillings67.com;
+ charset utf-8;
+ real_ip_header X-Forwarded-For;
+ real_ip_recursive on;
+
+ # max upload size
+ client_max_body_size 1M; # adjust to taste
+
+ # Issue redirect without trailing slash to trailing slash
+ rewrite ^([^.]*[^/])$ https://jamesbillings67.com$1/ permanent;
+
+ location / {
+ include nginx_amt-jb_proxy_pass.conf;
+ proxy_pass http://uvicorn;
+ }
+
+ location = /favicon.ico {
+ access_log off;
+ return 200 '{}';
+ }
+
+ location = /nginx_health/ {
+ access_log off;
+ add_header 'Content-Type' 'application/json';
+ return 200 '{"status":"ok"}';
+ }
+}
+
+server {
+ listen 8080;
+ server_name cdn.jamesbillings67.com;
+
+ location / {
+ alias /root/amt-jb/static/;
+ }
+}