@powerhousedao/ph-cli 2.5.0-dev.4 → 2.5.0-dev.5
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
|
@@ -154,18 +154,6 @@ EOF
|
|
|
154
154
|
# Create Nginx configuration for domains
|
|
155
155
|
echo "Creating Nginx configuration..."
|
|
156
156
|
sudo tee /etc/nginx/sites-available/$PROJECT_NAME > /dev/null << EOF
|
|
157
|
-
# Security headers
|
|
158
|
-
add_header Strict-Transport-Security "max-age=63072000" always;
|
|
159
|
-
add_header X-Frame-Options DENY;
|
|
160
|
-
add_header X-Content-Type-Options nosniff;
|
|
161
|
-
add_header X-XSS-Protection "1; mode=block";
|
|
162
|
-
|
|
163
|
-
# Compression settings
|
|
164
|
-
brotli on;
|
|
165
|
-
brotli_comp_level 6;
|
|
166
|
-
brotli_types text/plain text/css application/javascript application/json image/svg+xml application/xml+rss;
|
|
167
|
-
brotli_static on;
|
|
168
|
-
|
|
169
157
|
server {
|
|
170
158
|
listen 80;
|
|
171
159
|
server_name $connect_domain $switchboard_domain;
|
|
@@ -173,7 +161,8 @@ server {
|
|
|
173
161
|
}
|
|
174
162
|
|
|
175
163
|
server {
|
|
176
|
-
listen 443 ssl
|
|
164
|
+
listen 443 ssl;
|
|
165
|
+
http2 on;
|
|
177
166
|
server_name $connect_domain;
|
|
178
167
|
|
|
179
168
|
ssl_certificate /etc/nginx/ssl/temp.crt;
|
|
@@ -194,7 +183,7 @@ server {
|
|
|
194
183
|
}
|
|
195
184
|
|
|
196
185
|
location / {
|
|
197
|
-
root
|
|
186
|
+
root /var/www/html/$PROJECT_NAME;
|
|
198
187
|
try_files \$uri \$uri/ /index.html;
|
|
199
188
|
add_header Cache-Control "no-cache";
|
|
200
189
|
add_header X-Forwarded-Proto \$scheme;
|
|
@@ -204,7 +193,8 @@ server {
|
|
|
204
193
|
}
|
|
205
194
|
|
|
206
195
|
server {
|
|
207
|
-
listen 443 ssl
|
|
196
|
+
listen 443 ssl;
|
|
197
|
+
http2 on;
|
|
208
198
|
server_name $switchboard_domain;
|
|
209
199
|
|
|
210
200
|
ssl_certificate /etc/nginx/ssl/temp.crt;
|
|
@@ -228,18 +218,6 @@ EOF
|
|
|
228
218
|
# Create Nginx configuration for domains
|
|
229
219
|
echo "Creating Nginx configuration..."
|
|
230
220
|
sudo tee /etc/nginx/sites-available/$PROJECT_NAME > /dev/null << EOF
|
|
231
|
-
# Security headers
|
|
232
|
-
add_header Strict-Transport-Security "max-age=63072000" always;
|
|
233
|
-
add_header X-Frame-Options DENY;
|
|
234
|
-
add_header X-Content-Type-Options nosniff;
|
|
235
|
-
add_header X-XSS-Protection "1; mode=block";
|
|
236
|
-
|
|
237
|
-
# Compression settings
|
|
238
|
-
brotli on;
|
|
239
|
-
brotli_comp_level 6;
|
|
240
|
-
brotli_types text/plain text/css application/javascript application/json image/svg+xml application/xml+rss;
|
|
241
|
-
brotli_static on;
|
|
242
|
-
|
|
243
221
|
server {
|
|
244
222
|
listen 80;
|
|
245
223
|
server_name $connect_domain $switchboard_domain;
|
|
@@ -247,7 +225,8 @@ server {
|
|
|
247
225
|
}
|
|
248
226
|
|
|
249
227
|
server {
|
|
250
|
-
listen 443 ssl
|
|
228
|
+
listen 443 ssl;
|
|
229
|
+
http2 on;
|
|
251
230
|
server_name $connect_domain;
|
|
252
231
|
|
|
253
232
|
ssl_certificate /etc/nginx/ssl/temp.crt;
|
|
@@ -278,7 +257,8 @@ server {
|
|
|
278
257
|
}
|
|
279
258
|
|
|
280
259
|
server {
|
|
281
|
-
listen 443 ssl
|
|
260
|
+
listen 443 ssl;
|
|
261
|
+
http2 on;
|
|
282
262
|
server_name $switchboard_domain;
|
|
283
263
|
|
|
284
264
|
ssl_certificate /etc/nginx/ssl/temp.crt;
|
|
@@ -328,18 +308,6 @@ EOF
|
|
|
328
308
|
# Create Nginx configuration for self-signed
|
|
329
309
|
echo "Creating Nginx configuration..."
|
|
330
310
|
sudo tee /etc/nginx/sites-available/$PROJECT_NAME > /dev/null << EOF
|
|
331
|
-
# Security headers
|
|
332
|
-
add_header Strict-Transport-Security "max-age=63072000" always;
|
|
333
|
-
add_header X-Frame-Options DENY;
|
|
334
|
-
add_header X-Content-Type-Options nosniff;
|
|
335
|
-
add_header X-XSS-Protection "1; mode=block";
|
|
336
|
-
|
|
337
|
-
# Compression settings
|
|
338
|
-
brotli on;
|
|
339
|
-
brotli_comp_level 6;
|
|
340
|
-
brotli_types text/plain text/css application/javascript application/json image/svg+xml application/xml+rss;
|
|
341
|
-
brotli_static on;
|
|
342
|
-
|
|
343
311
|
server {
|
|
344
312
|
listen 80;
|
|
345
313
|
server_name $hostname;
|
|
@@ -347,7 +315,8 @@ server {
|
|
|
347
315
|
}
|
|
348
316
|
|
|
349
317
|
server {
|
|
350
|
-
listen 443 ssl
|
|
318
|
+
listen 443 ssl;
|
|
319
|
+
http2 on;
|
|
351
320
|
server_name $hostname;
|
|
352
321
|
|
|
353
322
|
ssl_certificate /etc/ssl/certs/$hostname.crt;
|
|
@@ -392,6 +361,21 @@ EOF
|
|
|
392
361
|
# =============================================================================
|
|
393
362
|
pnpm prisma db push --schema node_modules/document-drive/dist/prisma/schema.prisma
|
|
394
363
|
|
|
364
|
+
# Add global security headers and compression settings to main nginx.conf
|
|
365
|
+
sudo tee -a /etc/nginx/nginx.conf > /dev/null << EOF
|
|
366
|
+
|
|
367
|
+
# Global security headers
|
|
368
|
+
add_header Strict-Transport-Security "max-age=63072000" always;
|
|
369
|
+
add_header X-Frame-Options DENY;
|
|
370
|
+
add_header X-Content-Type-Options nosniff;
|
|
371
|
+
add_header X-XSS-Protection "1; mode=block";
|
|
372
|
+
|
|
373
|
+
# Global compression settings
|
|
374
|
+
brotli_comp_level 6;
|
|
375
|
+
brotli_types text/plain text/css application/javascript application/json image/svg+xml application/xml+rss;
|
|
376
|
+
brotli_static on;
|
|
377
|
+
EOF
|
|
378
|
+
|
|
395
379
|
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|
|
396
380
|
echo " Environment setup complete!"
|
|
397
381
|
echo " Use 'ph service start' to start services"
|
package/dist/src/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "2.5.0-dev.
|
|
1
|
+
export declare const version = "2.5.0-dev.5";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/src/version.js
CHANGED