Comments (4)
Sure, sounds like good idea. Although, perhaps the log formats could be managed globally in nginx.conf
, and then referenced in the server configuration? That way role could manage a few different, default log formats for different outputs. And you can add another variable for custom log formats defined by the user.
from debops.
I think that here it is not quite rightly written. If you look at the official documentation.
When I checked it must be always a string of log_format and it should be higher access_log.
https://nginx.ru/en/docs/http/ngx_http_log_module.html
from debops.
The log_format
directive is allowed only in the http { }
section of the nginx
configuration, not in server { }
block. So, these entries will need to be defined outside of the server configuration. They could be defined in a separate file in /etc/nginx/conf.d/
directory, maybe that would be a better choice than putting everything in /etc/nginx/nginx.conf
.
from debops.
if log_format is created in the folder conf.d, then this line should be higher access_log
from debops.
Related Issues (20)
- [lxc] wrong zfs_root item name
- [debops.apt]: Ability to write conf files anywhere in /etc/apt
- Please change handling of apt recommends installing
- [debops.nginx]: Support geo maps
- NodeJS nodesource repository change
- [debops] Installation instructions need to be updated
- [postgresql_server] Could do with some upgrade documentation
- postgresql role is broken with multiple problems
- Server side calls missing in multiple roles? HOT 1
- Role environment - debops v3.0.5 - type error bool instead of str
- [bind] missing `state` fails zone/view configuration creation HOT 3
- DOC: Broken links to https://docs.debops.org/en/latest/debops-keyring/docs/index.html
- Secret is undefined HOT 5
- ubuntu noble removes /etc/apt/sources.list file HOT 6
- debops.debops.kmod: Unload kernel module fails at the first time HOT 1
- Swap file deletion
- extrepo: Why not for Ubuntu, only for Debian? HOT 2
- Nginx: Tag 'role::nginx:servers' no more applied?
- Add a authorized_keys for a user that is not local on host HOT 2
- Dropbear initramfs : Renamed config path from /etc/dropbear-initramfs to /etc/dropbear/initramfs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from debops.