Skip to content

Commit

Permalink
Fix handling shared configs without nginxConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
zodern committed Oct 7, 2024
1 parent b4c55b6 commit 9e48d78
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/plugins/proxy/command-handlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,10 @@ export function reconfigShared(api) {
}
});

const sharedNginxConfig = api.resolvePath(api.getBasePath(), shared.nginxConfig) || api.resolvePath(__dirname, 'assets/proxy.conf');
const sharedNginxConfig = shared.nginxConfig ?
api.resolvePath(api.getBasePath(), shared.nginxConfig) :
api.resolvePath(__dirname, 'assets/proxy.conf');

list.copy('Sending nginx config', {
src: sharedNginxConfig,
dest: `/opt/${PROXY_CONTAINER_NAME}/config/nginx-default.conf`
Expand Down

0 comments on commit 9e48d78

Please sign in to comment.