Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/plugins/proxy/assets/templates/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ NGINX_CONFIG_PATH="/opt/$APPNAME/config/nginx-default.conf"
if ! grep -q "client_max_body_size" "$NGINX_CONFIG_PATH"; then
echo $NGINX_CONFIG >> /opt/$APPNAME/config/nginx-default.conf
fi

sudo docker run \
-d \
-p $HTTP_PORT:80 \
Expand All @@ -64,6 +63,7 @@ sudo docker run \
-v /opt/$APPNAME/config/html:/usr/share/nginx/html \
-v /opt/$APPNAME/config/nginx-default.conf:/etc/nginx/conf.d/my_proxy.conf:ro \
-v /var/run/docker.sock:/tmp/docker.sock:ro \
<% for(var volume in volumes) { %>-v <%= volume %>:<%= volumes[volume] %> <% } %> \
jwilder/nginx-proxy
echo "Ran nginx-proxy as $APPNAME"

Expand Down
1 change: 1 addition & 0 deletions src/plugins/proxy/command-handlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export function setup(api) {
vars: {
appName: PROXY_CONTAINER_NAME,
letsEncryptEmail: config.ssl ? config.ssl.letsEncryptEmail : null,
volumes: config.volumes,
swarmEnabled: api.getConfig().swarm
}
});
Expand Down
1 change: 1 addition & 0 deletions src/plugins/proxy/validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const schema = joi.object().keys({
.or('letsEncryptEmail', 'crt', 'forceSSL'),
domains: joi.string().required(),
nginxServerConfig: joi.string(),
volumes: joi.object(),
nginxLocationConfig: joi.string(),
clientUploadLimit: joi.string(),
servers: joi.object(),
Expand Down