@stacksjs/ts-cloud 0.5.21 → 0.5.23
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/bin/cli.js +357 -357
- package/dist/index.js +3 -2
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -84220,8 +84220,7 @@ function buildNginxVhostScript(options) {
|
|
|
84220
84220
|
const available = `/etc/nginx/sites-available/${options.siteName}`;
|
|
84221
84221
|
const enabled2 = `/etc/nginx/sites-enabled/${options.siteName}`;
|
|
84222
84222
|
const vhost = buildNginxVhost(options);
|
|
84223
|
-
const out = [];
|
|
84224
|
-
out.push("mkdir -p /etc/nginx/sites-available /etc/nginx/sites-enabled");
|
|
84223
|
+
const out = [...buildNginxServiceScript()];
|
|
84225
84224
|
if (options.auth) {
|
|
84226
84225
|
const file = htpasswdPath(options.siteName);
|
|
84227
84226
|
const sq = (v) => v.split("'").join("'\\''");
|
|
@@ -84235,6 +84234,8 @@ function buildNginxVhostScript(options) {
|
|
|
84235
84234
|
var NGINX_WRAPPER = "/usr/local/bin/ts-cloud-nginx";
|
|
84236
84235
|
function buildNginxServiceScript(projectDir = "/opt/pantry") {
|
|
84237
84236
|
return [
|
|
84237
|
+
...buildPantryBootstrapScript(),
|
|
84238
|
+
...buildPantryInstallScript(["nginx.org"]),
|
|
84238
84239
|
"mkdir -p /etc/nginx/sites-available /etc/nginx/sites-enabled /var/log/nginx /var/lib/nginx/body /var/lib/nginx/proxy /var/lib/nginx/fastcgi /var/lib/nginx/uwsgi /var/lib/nginx/scgi",
|
|
84239
84240
|
"getent passwd www-data >/dev/null || useradd --system --no-create-home --shell /usr/sbin/nologin www-data",
|
|
84240
84241
|
"chown -R www-data:www-data /var/lib/nginx /var/log/nginx",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/ts-cloud",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.23",
|
|
5
5
|
"description": "A lightweight, performant infrastructure-as-code library and CLI for deploying both server-based (EC2) and serverless applications.",
|
|
6
6
|
"author": "Chris Breuer <chris@stacksjs.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -89,8 +89,8 @@
|
|
|
89
89
|
"test": "bun test"
|
|
90
90
|
},
|
|
91
91
|
"dependencies": {
|
|
92
|
-
"@ts-cloud/aws-types": "0.5.
|
|
93
|
-
"@ts-cloud/core": "0.5.
|
|
92
|
+
"@ts-cloud/aws-types": "0.5.23",
|
|
93
|
+
"@ts-cloud/core": "0.5.23",
|
|
94
94
|
"@stacksjs/ts-xml": "^0.1.0"
|
|
95
95
|
},
|
|
96
96
|
"devDependencies": {
|