Commit dbe7c327 authored by kaiyou's avatar kaiyou

Move the default image path to /data

parent d3b3bfd4
...@@ -26,8 +26,10 @@ http { ...@@ -26,8 +26,10 @@ http {
server { server {
listen 80; listen 80;
location /images { client_max_body_size 20M;
alias /data;
location /data {
root /;
} }
location /static { location /static {
......
...@@ -11,8 +11,8 @@ app.config.update( ...@@ -11,8 +11,8 @@ app.config.update(
HELP_URL="https://git.tedomum.net/kaiyou/tedimg", HELP_URL="https://git.tedomum.net/kaiyou/tedimg",
FULL_STORAGE=os.environ.get("FULL_STORAGE", "/data"), FULL_STORAGE=os.environ.get("FULL_STORAGE", "/data"),
THUMB_STORAGE=os.environ.get("THUMB_STORAGE", "/data/thumb"), THUMB_STORAGE=os.environ.get("THUMB_STORAGE", "/data/thumb"),
FULL_WEB=os.environ.get("FULL_WEB", "images"), FULL_WEB=os.environ.get("FULL_WEB", "data"),
THUMB_WEB=os.environ.get("THUMB_WEB", "images/thumb"), THUMB_WEB=os.environ.get("THUMB_WEB", "data/thumb"),
THUMB_SIZE=100 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