Comments (2)
PR incoming to fix the required options key but that hash format is still incorrect for the template, as it supports multiple upstreams and upstreams require a name then the configuration must be contained within a hash where the key is the name of the upstream like so.
nginx_site 'foo' do
mode '0644'
variables(
'upstream' => {
'bar' => {
'server' => 'localhost:1234',
},
}
)
action :create
end
from nginx.
Thanks! You're right about the name bit of course, it was an oversight on my part.
from nginx.
Related Issues (20)
- Validating nginx configs to prevent sites from going down on reload of bad config HOT 5
- Option to specify nginx version using resource-based install HOT 2
- Parent directory /etc/nginx/conf.http.d does not exist since recent update HOT 13
- Configurable file/directory mode HOT 1
- Incorrect permissions of nginx config files HOT 5
- nginx_site resource ignores the variables HOT 3
- Documentation / nginx_site makes reference to syslog-ng
- nginx Chef 17 Compatibility
- nginx_site `template` attribute isn't very useful HOT 4
- Insecure default owner/group for files and folders created by nginx_config & nginx_site on Debian based platforms
- Repo helper shouldn't assume SLES 12
- NGINX install HOT 1
- Add support for basic authorization
- NoMethodError - undefined method `pidfile_location' for Chef::Resource::Directory HOT 1
- The changes in #593 make nginx run as root by default without privilege separation on platform family debian
- Dependency Dashboard
- Extract useful methods to outside of action_class
- Default folder_mode permissions in nginx_config resource may fail logrotate HOT 2
- nginx proxy_temp_path default permissions
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 nginx.