Commit dbe7c327 authored by kaiyou's avatar kaiyou

Move the default image path to /data

parent d3b3bfd4
......@@ -26,8 +26,10 @@ http {
server {
listen 80;
location /images {
alias /data;
client_max_body_size 20M;
location /data {
root /;
}
location /static {
......
......@@ -11,8 +11,8 @@ app.config.update(
HELP_URL="https://git.tedomum.net/kaiyou/tedimg",
FULL_STORAGE=os.environ.get("FULL_STORAGE", "/data"),
THUMB_STORAGE=os.environ.get("THUMB_STORAGE", "/data/thumb"),
FULL_WEB=os.environ.get("FULL_WEB", "images"),
THUMB_WEB=os.environ.get("THUMB_WEB", "images/thumb"),
FULL_WEB=os.environ.get("FULL_WEB", "data"),
THUMB_WEB=os.environ.get("THUMB_WEB", "data/thumb"),
THUMB_SIZE=100
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment