diff --git a/src/nginxconfig/generators/conf/nginx.conf.js b/src/nginxconfig/generators/conf/nginx.conf.js index 8cda066..4d6f43c 100644 --- a/src/nginxconfig/generators/conf/nginx.conf.js +++ b/src/nginxconfig/generators/conf/nginx.conf.js @@ -24,19 +24,17 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -import qs from 'qs'; import sslProfiles from '../../util/ssl_profiles'; -import exportData from '../../util/export_data'; import websiteConf from './website.conf'; +import shareQuery from '../../util/share_query'; export default (domains, global) => { const config = {}; // Source config['# Generated by nginxconfig.io'] = ''; - const data = exportData(domains.map((domain, index) => [domain, index]).filter(d => d[0] !== null), global); - const query = qs.stringify(data, { allowDots: true }); - config[`# ${window.location.protocol}//${window.location.host}${window.location.pathname}${query.length ? '?' : ''}${query}`] = ''; + const query = shareQuery(domains.map((domain, index) => [domain, index]).filter(d => d[0] !== null), global); + config[`# ${window.location.protocol}//${window.location.host}${window.location.pathname}${query}`] = ''; // Basic nginx conf config.user = global.nginx.user.computed; diff --git a/src/nginxconfig/templates/global_sections/tools.vue b/src/nginxconfig/templates/global_sections/tools.vue index 24b24cf..b3c8620 100644 --- a/src/nginxconfig/templates/global_sections/tools.vue +++ b/src/nginxconfig/templates/global_sections/tools.vue @@ -147,11 +147,10 @@ THE SOFTWARE.