question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Configuration: audit, clean, extend & improve

See original GitHub issue

As the refactor of config is done, and we’ve had a chance to use it for a little while, it would be good to revisit it again before the end of alpha. There are a couple of outstanding todos from #6982 plus I’d like to look at what config options we provide. Do they make sense? Are there some things which should not be config? Some things which should be and aren’t?

Things that definitely need review/audit:

~- [ ] catch the error thrown from nconf, and rethrow it in a prettyier, clearer, more Ghost-like~ fashion (see https://github.com/TryGhost/Ghost/issues/7488#issuecomment-276090407):

/Users/hannah/Ghost/node_modules/nconf/lib/nconf/stores/file.js:160
    throw new Error("Error parsing your configuration file: [" + this.file + ']: ' + ex.message);
    ^

Error: Error parsing your configuration file: [/Users/hannah/Ghost/config.development.json]: Unexpected token d
...

Anyone who has something else they’d like reconsidered, please add a comment!

TODOs from #6982:

  • revisit the use of keys with nconf’s .file()
  • remove the default database config, add client to the config.development.json file

TODO’s from #7692

  • remove config.set('theme:…`), look at the TODO written in the PR

Issue fixes

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:3
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
ErisDScommented, May 29, 2017

Couple of notes / thoughts as I’m moving around:

  • reconsider: in overrides.json, times key needs to be changed to something like scheduling as it is part of that aspect of Ghost.
  • minifyAssets needs revisiting as it is doesn’t do anything really
  • internalApps should possibly be apps.internal?
  • think about content paths:
    • I would like to make it possible at some point soon (not necessarily for 1.0) to change the path for where themes are stored - this would be the only available customisation, no adapters. we will keep it in mind
    • I would like adapters to all live in /content/adapters by default, rather than having separate folders.
0reactions
kirrg001commented, Jun 5, 2017

👍 Thank you!

I agree to the custom theme and image paths. We can add this later as a none breaking change and support both notations. You either specify a contentPath or override the content path by e.g. contentImagePath - if only one option is specified, it’s possible to detect that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Perform Configuration Audit - VMware Docs
The configuration audit API performs licensing checks on all the objects in the system and reports various violations. It ignores the violations ...
Read more >
Adjusting Event Log Size and Retention Settings
To prevent overwrites, you can increase the maximum size of the event logs and set retention method for these logs to “Overwrite events...
Read more >
Configure Audit Logs using the Properties File
Use the properties file to configure your Confluent Platform audit logs. ... For improved security, send audit logs to a different cluster.
Read more >
Oracle Database Auditing: Performance Guidelines
This paper helps you estimate impact on application throughput and CPU usage when enabling auditing policies in the Oracle database. To understand the...
Read more >
Auditing - Product Documentation | ServiceNow
Track record changes on auditing-enabled tables. By default, the system tracks changes to the incident, change, and problem tables, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found