mirror of
https://github.com/penpot/penpot.git
synced 2025-01-08 07:50:43 -05:00
🎉 Add minio client to devenv
And minor fix the nginx config.
This commit is contained in:
parent
9e4a50fb15
commit
b348a882f4
2 changed files with 12 additions and 6 deletions
|
@ -158,6 +158,14 @@ RUN set -ex; \
|
|||
tar -xf /tmp/babashka.tar.gz; \
|
||||
rm -rf /tmp/babashka.tar.gz;
|
||||
|
||||
RUN set -ex; \
|
||||
curl -LfsSo /usr/bin/local/mc https://dl.min.io/client/mc/release/linux-amd64/mc; \
|
||||
chmod +x /usr/bin/local/mc; \
|
||||
/usr/bin/local/mc alias set penpot-s3/ http://minio:9000 minioadmin minioadmin; \
|
||||
/usr/bin/local/mc admin user add penpot-s3 penpot-devenv penpot-devenv; \
|
||||
/usr/bin/local/mc admin policy set penpot-s3 readwrite user=penpot-devenv; \
|
||||
/usr/bin/local/mc mb penpot-s3/penpot -p;
|
||||
|
||||
WORKDIR /home
|
||||
|
||||
EXPOSE 3447
|
||||
|
|
|
@ -56,7 +56,7 @@ http {
|
|||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
||||
resolver 8.8.8.8;
|
||||
resolver 127.0.0.11;
|
||||
|
||||
etag off;
|
||||
|
||||
|
@ -67,8 +67,6 @@ http {
|
|||
set $redirect_host "$upstream_http_x_host";
|
||||
set $redirect_cache_control "$upstream_http_cache_control";
|
||||
|
||||
proxy_buffering off;
|
||||
|
||||
proxy_set_header Host "$redirect_host";
|
||||
proxy_hide_header etag;
|
||||
proxy_hide_header x-amz-id-2;
|
||||
|
@ -77,9 +75,9 @@ http {
|
|||
proxy_hide_header x-amz-server-side-encryption;
|
||||
proxy_pass $redirect_uri;
|
||||
|
||||
add_header x-internal-redirect "$redirect_uri";
|
||||
add_header x-cache-control "$redirect_cache_control";
|
||||
add_header cache-control "$redirect_cache_control";
|
||||
#add_header x-internal-redirect "$redirect_uri";
|
||||
#add_header x-cache-control "$redirect_cache_control";
|
||||
#add_header cache-control "$redirect_cache_control";
|
||||
}
|
||||
|
||||
location /assets {
|
||||
|
|
Loading…
Reference in a new issue