Commit 2021c9

2024-02-02 01:49:46 Hargata Softworks: z
troubleshooting.md ..
@@ 19,3 19,36 @@
### Can't change locale.
Environment variables are injected on deployment. You will need to re-deploy.
+
+ ## Server Issues
+
+ ### NGINX / Cloudflare
+ LubeLogger is a web app that runs on Kestrel, it literally doesn't matter if it's deployed behind a reverse proxy or Cloudflare tunnel. As long as the app can receive traffic on the port it's configured on, it will run.
+
+ Here's a sample Nginx reverse proxy configuration courtesy of [thehijacker](https://github.com/thehijacker)
+ ```
+ server
+ {
+ listen 443 ssl http2;
+ server_name lubelogger.domain.com;
+
+ ssl_certificate /etc/nginx/ssl/acme/domain.com/fullchain.pem;
+ ssl_certificate_key /etc/nginx/ssl/acme/domain.com/key.pem;
+ ssl_dhparam /etc/nginx/ssl/acme/domain.com/dhparams.pem;
+ ssl_trusted_certificate /etc/nginx/ssl/acme/domain.com/fullchain.pem;
+
+ location /
+ {
+ proxy_pass http://192.168.28.53:8289;
+ client_max_body_size 50000M;
+ proxy_set_header Host $http_host;
+ 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;
+ proxy_http_version 1.1;
+ proxy_set_header Upgrade $http_upgrade;
+ proxy_set_header Connection "upgrade";
+ proxy_redirect off;
+ }
+ }
+ ```
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9