]> Nutra Git (v1) - nutratech/vps-root.git/commitdiff
sync envs
authornutra-bot <nutradigest@gmail.com>
Fri, 21 Apr 2023 03:35:30 +0000 (03:35 +0000)
committernutra-bot <nutradigest@gmail.com>
Fri, 21 Apr 2023 03:38:10 +0000 (03:38 +0000)
.editorconfig
etc/nginx/conf.d/default.conf

index 26011d992cef0f1d71bedd36849d30d40a9dc7b8..ddb84d57106c30455d993e1511952e860f651a3a 100644 (file)
@@ -12,7 +12,6 @@ max_line_length = 100
 
 [{default,default.conf}]
 indent_size = 2
-indent_style = space
 
 
 [{nutra,*.py}]
index bfab9c9a2735cbf487e4d26e31b70a879243e847..8efb6a6737d4d38cd8307f0ef272f8ef44f48e18 100644 (file)
@@ -15,7 +15,7 @@ server {
 
   # Sanic
   location / {
-    proxy_pass http://127.0.0.1:20000; # API server
+    proxy_pass http://127.0.0.1:20000;  # API server
     # Allow fast streaming HTTP/1.1 pipes (keep-alive, unbuffered)
     proxy_http_version 1.1;
     proxy_request_buffering off;
@@ -51,6 +51,7 @@ server {
 
   # React app (base URL)
   location / {
+    #return 302 https://$host/api$request_uri;
     root /var/www/app;
     index index.html;
     #try_files $uri $uri/ /index.html =404;
@@ -78,6 +79,7 @@ server {
   include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
   ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
 
+  # TODO: better redirect based on server, not if?
   if ($host = www.dev.nutra.tk) {
     return 301 https://dev.nutra.tk$request_uri;
   }