@powerhousedao/ph-cli 2.5.0-dev.9 → 2.5.0-staging.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/package.json
CHANGED
|
@@ -115,14 +115,21 @@ EOF
|
|
|
115
115
|
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
|
116
116
|
|
|
117
117
|
# Add compression settings to nginx.conf if not exists
|
|
118
|
-
if ! grep -q "brotli_comp_level" /etc/nginx/nginx.conf; then
|
|
118
|
+
if ! grep -q "brotli_comp_level" /etc/nginx/nginx.conf || ! grep -q "gzip_comp_level" /etc/nginx/nginx.conf; then
|
|
119
119
|
echo "Adding compression settings to nginx.conf..."
|
|
120
120
|
# Find the http block in nginx.conf
|
|
121
|
-
|
|
121
|
+
if ! grep -q "brotli_comp_level" /etc/nginx/nginx.conf; then
|
|
122
|
+
sudo sed -i '/http {/a \ # Brotli compression\n brotli on;\n brotli_comp_level 6;\n brotli_types text/plain text/css application/javascript application/json image/svg+xml application/xml+rss;\n brotli_static on;' /etc/nginx/nginx.conf
|
|
123
|
+
fi
|
|
124
|
+
if ! grep -q "gzip_comp_level" /etc/nginx/nginx.conf; then
|
|
125
|
+
sudo sed -i '/http {/a \ # Gzip compression\n gzip on;\n gzip_vary on;\n gzip_proxied any;\n gzip_comp_level 6;\n gzip_buffers 16 8k;\n gzip_http_version 1.1;\n gzip_types text/plain text/css application/javascript application/json image/svg+xml application/xml+rss;' /etc/nginx/nginx.conf
|
|
126
|
+
fi
|
|
122
127
|
else
|
|
123
128
|
echo "Compression settings already present in nginx.conf"
|
|
124
129
|
fi
|
|
125
130
|
|
|
131
|
+
|
|
132
|
+
|
|
126
133
|
echo "Choose SSL configuration:"
|
|
127
134
|
echo "1) Let's Encrypt certificates for domains"
|
|
128
135
|
echo "2) Self-signed certificate for machine hostname"
|
package/dist/src/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "2.5.0-
|
|
1
|
+
export declare const version = "2.5.0-staging.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,OAAO,oBAAoB,CAAC"}
|
package/dist/src/version.js
CHANGED
package/dist/src/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,4CAA4C;AAC5C,MAAM,CAAC,MAAM,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,4CAA4C;AAC5C,MAAM,CAAC,MAAM,OAAO,GAAG,iBAAiB,CAAC"}
|