Skip to content

Commit c087018

Browse files
authored
Fix nginx example (#1124)
## Summary It turns out that our nginx plugin works as expected, but the example is not up-to-date according to the plugin. Tested with devbox.sh ## How was it tested? devbox.sh devbox services up
1 parent f19a13e commit c087018

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

examples/servers/nginx/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## nginx-1.22.1
22

33
### nginx NOTES:
4-
nginx is configured to use .devbox/conf/nginx.conf
4+
nginx is configured to use devbox.d/nginx/nginx.conf
55

66
To customize:
77
* Use $NGINX_CONFDIR to change the configuration directory
@@ -18,11 +18,11 @@ To customize:
1818
Use `devbox services start|stop [service]` to interact with services
1919

2020
### This configuration creates the following helper files:
21-
* .devbox/conf/nginx/nginx.conf
22-
* .devbox/conf/nginx/fastcgi.conf
21+
* devbox.d/nginx/nginx.conf
22+
* devbox.d/nginx/fastcgi.conf
2323

2424
### This configuration sets the following environment variables:
25-
* NGINX_CONFDIR=/Users/johnlago/src/devbox-examples/servers/nginx/.devbox/conf/nginx
25+
* NGINX_CONFDIR=<root_dir>/devbox.d/nginx
2626

2727
To show this information, run `devbox info nginx`
2828

examples/servers/nginx/devbox.d/nginx/nginx.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
events {}
22
http{
33
server {
4-
listen 80;
5-
listen [::]:80;
4+
listen 8081;
5+
listen [::]:8081;
66
server_name localhost;
77
root ../../../devbox.d/web;
88

examples/servers/nginx/devbox.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"packages": {
44
"nginx@latest": {
55
"last_modified": "2023-05-01T16:53:22Z",
6+
"plugin_version": "0.0.1",
67
"resolved": "github:NixOS/nixpkgs/8670e496ffd093b60e74e7fa53526aa5920d09eb#nginx",
78
"version": "1.24.0"
89
}

0 commit comments

Comments
 (0)