@gigadrive/network-config 5.2.0 → 5.3.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/index.mjs CHANGED
@@ -955,6 +955,9 @@ var astro = {
955
955
  })
956
956
  };
957
957
 
958
+ // src/detection/generated-secret.ts
959
+ var generatedSecret = (format) => `{{gigadrive.secret:${format}}}`;
960
+
958
961
  // src/detection/frameworks/php-front-controller.ts
959
962
  var phpFrontControllerDefaults = ({
960
963
  documentRoot,
@@ -997,7 +1000,9 @@ var cakephp = {
997
1000
  "tmp/tests",
998
1001
  "logs"
999
1002
  ],
1000
- excludeFiles: ["tests/", "tmp/", "logs/"]
1003
+ excludeFiles: ["tests/", "tmp/", "logs/"],
1004
+ // config/app.php reads the salt from env; app_local.php is not committed.
1005
+ environmentVariables: { SECURITY_SALT: generatedSecret("hex") }
1001
1006
  })
1002
1007
  };
1003
1008
 
@@ -1220,6 +1225,8 @@ var laravel = {
1220
1225
  ]
1221
1226
  },
1222
1227
  environmentVariables: {
1228
+ // Encrypts cookies and sessions; Laravel cannot serve a page without it.
1229
+ APP_KEY: generatedSecret("laravel-app-key"),
1223
1230
  APP_NAME: "Laravel",
1224
1231
  APP_ENV: "production",
1225
1232
  APP_DEBUG: "false",
@@ -1227,7 +1234,10 @@ var laravel = {
1227
1234
  LOG_DEPRECATIONS_CHANNEL: "stderr",
1228
1235
  LOG_LEVEL: "debug",
1229
1236
  BROADCAST_DRIVER: "log",
1230
- SESSION_DRIVER: "cookie"
1237
+ SESSION_DRIVER: "cookie",
1238
+ // The skeleton defaults both to `database`, which needs a migrated database.
1239
+ CACHE_STORE: "file",
1240
+ QUEUE_CONNECTION: "sync"
1231
1241
  }
1232
1242
  })
1233
1243
  };
@@ -1969,6 +1979,8 @@ var symfony = {
1969
1979
  environmentVariables: {
1970
1980
  APP_ENV: "prod",
1971
1981
  APP_DEBUG: "false",
1982
+ // CSRF tokens, signed URLs and remember-me cookies.
1983
+ APP_SECRET: generatedSecret("hex"),
1972
1984
  MESSENGER_TRANSPORT_DSN: "doctrine://default?auto_setup=0"
1973
1985
  }
1974
1986
  })
@@ -4066,6 +4078,7 @@ export {
4066
4078
  dockerFunctionContainerName,
4067
4079
  filterFunctionsFromAssets,
4068
4080
  generateConfig,
4081
+ generatedSecret,
4069
4082
  getFunctionSettings,
4070
4083
  mergeWithFrameworkDefaults,
4071
4084
  normalizeContainers,