initial commit

This commit is contained in:
2026-03-01 11:35:14 -06:00
commit a1428df440
10 changed files with 1557 additions and 0 deletions

52
nginx-markdown.conf Normal file
View File

@@ -0,0 +1,52 @@
server {
listen 80;
server_name markdown.yourdomain.com; # Change this to your domain
# Optional: Redirect HTTP to HTTPS
# return 301 https://$server_name$request_uri;
client_max_body_size 10M;
location / {
proxy_pass http://127.0.0.1:8080;
proxy_set_header Host $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;
# Timeouts for PDF generation
proxy_connect_timeout 120s;
proxy_send_timeout 120s;
proxy_read_timeout 120s;
}
# Optional: Access and error logs
access_log /var/log/nginx/markdown-access.log;
error_log /var/log/nginx/markdown-error.log;
}
# Optional: HTTPS configuration (uncomment and configure after obtaining SSL certificate)
# server {
# listen 443 ssl http2;
# server_name markdown.yourdomain.com;
#
# ssl_certificate /etc/letsencrypt/live/markdown.yourdomain.com/fullchain.pem;
# ssl_certificate_key /etc/letsencrypt/live/markdown.yourdomain.com/privkey.pem;
#
# client_max_body_size 10M;
#
# location / {
# proxy_pass http://127.0.0.1:8080;
# proxy_set_header Host $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_connect_timeout 120s;
# proxy_send_timeout 120s;
# proxy_read_timeout 120s;
# }
#
# access_log /var/log/nginx/markdown-access.log;
# error_log /var/log/nginx/markdown-error.log;
# }