<NME> dcos-adminrouter.nssm
<BEF> ADDFILE
<MSG> Change config for adminrouter

<DFF> @@ -0,0 +1,10 @@
+[service]
+DisplayName = dcos-adminrouter
+Description = DCOS Adminrouter
+Application = {{ pkg_inst_dpath }}\bin\nginx.exe
+AppDirectory = {{ pkg_inst_dpath }}\bin
+AppParameters = -c {{ pkg_shrcfg_dpath }}\dcos-adminrouter\nginx.conf
+Start = SERVICE_AUTO_START
+AppStdout = {{ pkg_log_dpath }}\dcos-adminrouter-nssm.log
+AppStderr = {{ pkg_log_dpath }}\dcos-adminrouter.log
+AppEnvironmentExtra = AUTH_ERROR_PAGE_DIR_PATH="{{ pkg_inst_dpath }}/etc/conf/errorpages"
\ No newline at end of file

{'commit': 'diff --git a/packages/adminrouter/dcos-adminrouter.nssm b/packages/adminrouter/dcos-adminrouter.nssm\nnew file mode 100755\nindex 00000000..e791f61e\n--- /dev/null\n+++ b/packages/adminrouter/dcos-adminrouter.nssm\n@@ -0,0 +1,10 @@\n+[service]\n+DisplayName = dcos-adminrouter\n+Description = DCOS Adminrouter\n+Application = {{ pkg_inst_dpath }}\\bin\\nginx.exe\n+AppDirectory = {{ pkg_inst_dpath }}\\bin\n+AppParameters = -c {{ pkg_shrcfg_dpath }}\\dcos-adminrouter\\nginx.conf\n+Start = SERVICE_AUTO_START\n+AppStdout = {{ pkg_log_dpath }}\\dcos-adminrouter-nssm.log\n+AppStderr = {{ pkg_log_dpath }}\\dcos-adminrouter.log\n+AppEnvironmentExtra = AUTH_ERROR_PAGE_DIR_PATH="{{ pkg_inst_dpath }}/etc/conf/errorpages"\n\\ No newline at end of file\ndiff --git a/packages/adminrouter/extra/src/includes/http/agent-windows.conf b/packages/adminrouter/extra/src/includes/http/agent-windows.conf\nold mode 100644\nnew mode 100755\nindex a0969f46..488f5d0a\n--- a/packages/adminrouter/extra/src/includes/http/agent-windows.conf\n+++ b/packages/adminrouter/extra/src/includes/http/agent-windows.conf\n@@ -1,6 +1,6 @@\n # See the comment for Master\'s resovler configuration in\n # includes/http/master.conf.\n-resolver 198.51.100.1:53 198.51.100.2:53 198.51.100.3:53 valid=5s ipv6=off;\n+resolver {{ master_priv_ipaddr }}:53 valid=5s ipv6=off;\n \n ## Please check https://github.com/openresty/lua-nginx-module/issues/467#issuecomment-305529857\n ## for some context.\ndiff --git a/packages/adminrouter/extra/src/includes/http/common-windows.conf b/packages/adminrouter/extra/src/includes/http/common-windows.conf\nold mode 100644\nnew mode 100755\nindex 04ab52ea..7996f238\n--- a/packages/adminrouter/extra/src/includes/http/common-windows.conf\n+++ b/packages/adminrouter/extra/src/includes/http/common-windows.conf\n@@ -104,7 +104,7 @@ log_format customformat \'$remote_addr - $remote_user [$time_local] \'\n # systemd SyslogFacility defaults to daemon and\n # therefore all other DC/OS services log to it.\n # https://jira.mesosphere.com/browse/DCOS-38622\n-access_log C:/dcos/mesos-logs/dcos-adminrouter-access.log,facility=daemon customformat;\n+access_log {{ pkg_log_dpath }}/dcos-adminrouter-access.log,facility=daemon customformat;\n include mime.types;\n default_type application/octet-stream;\n sendfile on;\n@@ -112,7 +112,7 @@ keepalive_timeout 65;\n \n server_tokens off;\n \n-lua_package_path \'$prefix/conf/lib/?.lua;;\';\n+lua_package_path \'{{ pkg_inst_dpath }}/etc/conf/lib/?.lua;;\';\n \n # Name: DC/OS Component Package Manager (Pkgpanda)\n # Reference: https://docs.mesosphere.com/1.12/administering-clusters/component-management/\ndiff --git a/packages/adminrouter/extra/src/includes/main/common-windows.conf b/packages/adminrouter/extra/src/includes/main/common-windows.conf\nold mode 100644\nnew mode 100755\nindex 17fda848..2b9c5424\n--- a/packages/adminrouter/extra/src/includes/main/common-windows.conf\n+++ b/packages/adminrouter/extra/src/includes/main/common-windows.conf\n@@ -7,7 +7,7 @@\n # the socket quickly enough, log messages may be lost, but this is\n # better than logging to a blocking connection (e.g. stderr) which\n # may cause Admin Router to hang.\n-error_log C:/dcos/mesos-logs/dcos-adminrouter-error.log,facility=daemon info;\n+error_log {{ pkg_log_dpath }}/dcos-adminrouter-error.log,facility=daemon info;\n \n # Make env vars accessible from within Lua modules.\n env SECRET_KEY_FILE_PATH;\ndiff --git a/packages/adminrouter/extra/src/nginx.windows.agent.conf b/packages/adminrouter/extra/src/nginx.windows.agent.conf\nindex 20a43fee..3eb58d98 100644\n--- a/packages/adminrouter/extra/src/nginx.windows.agent.conf\n+++ b/packages/adminrouter/extra/src/nginx.windows.agent.conf\n@@ -8,7 +8,7 @@ http {\n     include includes/http/open/common.conf;\n \n     server {\n-        server_name windows-agent.mesos;\n+        server_name agent.mesos;\n \n         include includes/server/common-windows.conf;\n         include includes/server/agent.conf;\n', 'commit_subject': 'Change config for adminrouter', 'repo_name': 'dcos/dcos', 'committer': {'name': 'Kostiantyn Oleksiienko', 'email': 'f37dba961437d8b772f410e1522ecf37f56cbc3e@epam.com', 'time_sec': '1575632387', 'tz_offset': '120', 'date': {'seconds': '1575632387'}}, 'commit_tree': '5655216ecda23b82ef776cb40f333321655f2723', 'commit_message': 'Change config for adminrouter\n', 'language_name': 'Shell', 'license': 'apache-2.0', 'hunks': '@@ -0,0 +1,10 @@\n+[service]\n+DisplayName = dcos-adminrouter\n+Description = DCOS Adminrouter\n+Application = {{ pkg_inst_dpath }}\\bin\\nginx.exe\n+AppDirectory = {{ pkg_inst_dpath }}\\bin\n+AppParameters = -c {{ pkg_shrcfg_dpath }}\\dcos-adminrouter\\nginx.conf\n+Start = SERVICE_AUTO_START\n+AppStdout = {{ pkg_log_dpath }}\\dcos-adminrouter-nssm.log\n+AppStderr = {{ pkg_log_dpath }}\\dcos-adminrouter.log\n+AppEnvironmentExtra = AUTH_ERROR_PAGE_DIR_PATH="{{ pkg_inst_dpath }}/etc/conf/errorpages"\n\\ No newline at end of file\n', 'addition_count': 10, 'deletion_count': 0, 'src_file': '/dev/null', 'tgt_file': 'b/packages/adminrouter/dcos-adminrouter.nssm', 'file_extension': '.nssm', 'before_file': 'ADDFILE', 'message': 'Change config for adminrouter\n', 'author_name': 'Kostiantyn Oleksiienko', 'lang': 'nssm'}