Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seam not work with proxy #2

Open
alphaonex86 opened this issue Nov 13, 2017 · 0 comments
Open

Seam not work with proxy #2

alphaonex86 opened this issue Nov 13, 2017 · 0 comments

Comments

@alphaonex86
Copy link

Hi, seam not work with proxy:

set $store_path /tmp/pngquant;
location ~ \.png$ {
    root $store_path;
    try_files @proxy @pngquant;
}
location @pngquant {
    pngquant on;
    pngquant_buffer_size 1M;
    pngquant_colors 256;
    pngquant_dither on;
    pngquant_speed 1;
    pngquant_store $store_path$uri;
    pngquant_store_access user:rw group:rw all:r;
}

    location ~ /.* {
        proxy_pass             http://$host;
        proxy_set_header       Host $host;
        proxy_http_version 1.1;

        proxy_cache MYAPP;
        proxy_cache_valid 200 31d;
        proxy_cache_valid 302 301 31d;
        proxy_cache_valid 404 24h;
        proxy_cache_valid 500 72h;
        proxy_cache_use_stale updating;
        proxy_cache_background_update on;
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant