Skip to content

Commit 69ee6b1

Browse files
authored
Update nginx.js
1 parent ca1ea04 commit 69ee6b1

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

backend/internal/nginx.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,10 @@ const internalNginx = {
156156
const locationRendering = async () => {
157157
for (let i = 0; i < host.locations.length; i++) {
158158
let locationCopy = Object.assign({}, {access_list_id: host.access_list_id}, {certificate_id: host.certificate_id},
159-
{ssl_forced: host.ssl_forced}, {caching_enabled: host.caching_enabled},
160-
{block_exploits: host.block_exploits}, {allow_websocket_upgrade: host.allow_websocket_upgrade},
161-
{http2_support: host.http2_support}, {hsts_enabled: host.hsts_enabled},
162-
{hsts_subdomains: host.hsts_subdomains}, {access_list: host.access_list},
163-
{certificate: host.certificate}, host.locations[i]);
159+
{ssl_forced: host.ssl_forced}, {caching_enabled: host.caching_enabled}, {block_exploits: host.block_exploits},
160+
{allow_websocket_upgrade: host.allow_websocket_upgrade}, {http2_support: host.http2_support},
161+
{hsts_enabled: host.hsts_enabled}, {hsts_subdomains: host.hsts_subdomains}, {access_list: host.access_list},
162+
{certificate: host.certificate}, host.locations[i]);
164163

165164
if (locationCopy.forward_host.indexOf('/') > -1) {
166165
const splitted = locationCopy.forward_host.split('/');

0 commit comments

Comments
 (0)