Publish snippets and Markdown posts through authenticated uploads
This commit is contained in:
@@ -2,8 +2,9 @@
|
||||
root /home/mahdi/blog-published/current;
|
||||
|
||||
# Add this alongside the existing /, /raw/, /_xpanel, and TLS configuration.
|
||||
location /api/photos {
|
||||
location ~ ^/api/(photos|snippets|posts)(/|$) {
|
||||
client_max_body_size 100m;
|
||||
client_body_timeout 900s;
|
||||
proxy_read_timeout 180s;
|
||||
proxy_pass http://127.0.0.1:8088;
|
||||
proxy_set_header Host $host;
|
||||
|
||||
Reference in New Issue
Block a user