Re-enable config

This commit is contained in:
Your Name
2018-11-06 19:32:47 +00:00
parent 166d370824
commit ac838e0d8c
3 changed files with 14 additions and 134 deletions

144
CS.xml
View File

@@ -1,25 +1,18 @@
<?xml version='1.0' encoding='UTF-8' ?>
<?charles serialisation-version='2.0' ?>
<charles-export>
<configuration>
<proxyConfiguration>
<enableSOCKSProxy>false</enableSOCKSProxy>
<dynamicHTTPPort>false</dynamicHTTPPort>
<dynamicSOCKSPort>false</dynamicSOCKSPort>
<enableSOCKSTransparentHTTPProxying>true</enableSOCKSTransparentHTTPProxying>
<port>818</port>
<port>8888</port>
<SOCKSPort>8889</SOCKSPort>
<decryptSSL>true</decryptSSL>
<transparentProxy>false</transparentProxy>
<preferIPv6addresses>false</preferIPv6addresses>
<sslLocations>
<locationPatterns>
<locationMatch>
<location>
<host>*</host>
</location>
<enabled>true</enabled>
</locationMatch>
</locationPatterns>
<locationPatterns/>
</sslLocations>
<defaultSOCKSTransparentHTTPProxyPorts>true</defaultSOCKSTransparentHTTPProxyPorts>
<windowsConfiguration>
@@ -51,22 +44,7 @@
</recordingConfiguration>
<accessControlConfiguration>
<warn>true</warn>
<ipRanges>
<ipRange>
<ip>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
</ip>
<mask>
<int>0</int>
<int>0</int>
<int>0</int>
<int>0</int>
</mask>
</ipRange>
</ipRanges>
<ipRanges/>
</accessControlConfiguration>
<externalProxyConfiguration>
<configurations>
@@ -119,19 +97,11 @@
<newSession>true</newSession>
<throttling>false</throttling>
<checkUpdates>true</checkUpdates>
<maximised>true</maximised>
<maximised>false</maximised>
<fullscreen>false</fullscreen>
<mainWindow>
<x>20</x>
<y>20</y>
<width>900</width>
<height>700</height>
</mainWindow>
<currentDirectory>E:\</currentDirectory>
<lastCheckUpdates>2018-08-29 00:05:47.843 UTC</lastCheckUpdates>
<lastCheckUpdates>2018-09-03 17:54:26.641 UTC</lastCheckUpdates>
</startupConfiguration>
<userInterfaceConfiguration>
<displayFont>Default</displayFont>
<promptToSaveSessions>false</promptToSaveSessions>
<promptToClearSession>false</promptToClearSession>
<showLineNumbers>true</showLineNumbers>
@@ -151,85 +121,16 @@
<unitsSpeed>0</unitsSpeed>
<unitsTime>0</unitsTime>
<warningsSeen/>
<properties>
<entry>
<string>URLEncodedBodyViewer.TABLE_COLUMN_STATES</string>
<columnStates/>
</entry>
<entry>
<string>URLEncodedQueryViewer.TABLE_COLUMN_STATES</string>
<columnStates/>
</entry>
<entry>
<string>NavigatorJTable.TABLE_COLUMN_STATES</string>
<columnStates/>
</entry>
<entry>
<string>ChartPanel.TYPE_TABLE_COLUMN_STATES</string>
<columnStates/>
</entry>
<entry>
<string>SessionFrame.splitPlane.dividerLocation.horizontal</string>
<int>300</int>
</entry>
<entry>
<string>RequestResponsePanel.DIVIDER_LOCATON</string>
<int>150</int>
</entry>
<entry>
<string>SummaryPanel.TABLE_COLUMN_STATES</string>
<columnStates/>
</entry>
<entry>
<string>ChartPanel.SIZE_TABLE_COLUMN_STATES</string>
<columnStates/>
</entry>
<entry>
<string>WebSocketBodyViewer.TABLE_COLUMN_STATES</string>
<columnStates/>
</entry>
<entry>
<string>ActiveConnectionsFrame.TABLE_COLUMN_STATES</string>
<columnStates/>
</entry>
<entry>
<string>ChartPanel.TIMELINE_TABLE_COLUMN_STATES</string>
<columnStates/>
</entry>
<entry>
<string>ChartPanel.DURATION_TABLE_COLUMN_STATES</string>
<columnStates/>
</entry>
<entry>
<string>SessionFrame.splitPlane.dividerLocation.vertical</string>
<int>232</int>
</entry>
<entry>
<string>SessionFrame.navTabs.mode</string>
<string>Structure</string>
</entry>
<entry>
<string>URLEncodedQueryEditor.TABLE_COLUMN_STATES</string>
<columnStates/>
</entry>
</properties>
<properties/>
</userInterfaceConfiguration>
<registrationConfiguration/>
<toolConfiguration>
<configs>
<entry>
<string>Breakpoints</string>
<breakpoints>
<toolEnabled>false</toolEnabled>
<breakpoints>
<breakpoint>
<location>
<path>/users/me/payouts</path>
</location>
<request>false</request>
<response>true</response>
<enabled>true</enabled>
</breakpoint>
</breakpoints>
<breakpoints/>
</breakpoints>
</entry>
<entry>
@@ -253,22 +154,8 @@
<entry>
<string>Map Remote</string>
<map>
<toolEnabled>true</toolEnabled>
<mappings>
<mapMapping>
<sourceLocation>
<protocol>https</protocol>
<host>api-quiz.hype.space</host>
</sourceLocation>
<destLocation>
<protocol>http</protocol>
<host>localhost</host>
<port>3000</port>
</destLocation>
<preserveHostHeader>false</preserveHostHeader>
<enabled>true</enabled>
</mapMapping>
</mappings>
<toolEnabled>false</toolEnabled>
<mappings/>
</map>
</entry>
<entry>
@@ -278,13 +165,6 @@
<portForwardings/>
</portForwarding>
</entry>
<entry>
<string>Viewer Mappings</string>
<viewerMappings>
<toolEnabled>false</toolEnabled>
<mappings/>
</viewerMappings>
</entry>
<entry>
<string>Rewrite</string>
<rewrite>
@@ -395,4 +275,4 @@
<locationPatterns/>
</hosts>
</focusConfiguration>
</charles-export>
</configuration>

2
app.js
View File

@@ -36,7 +36,7 @@ app.use(cookieParser());
app.use(express.static(path.join(__dirname, 'public')));
app.use('/', indexRouter);
//app.use('/config', configRouter);
app.use('/config', configRouter);
app.use('/shows/now', showsRouter);
app.use('/tes.pac', pacRouter);
app.use('/cert', certRouter);

View File

@@ -11,7 +11,7 @@ router.all('/', function(ureq, res, next) {
if (err) throw err;
obj = JSON.parse(data);
request({
headers: headers,
headers: {'Authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOjIzMTkxMzU3LCJ1c2VybmFtZSI6Ikh1YlRyaXZpYSIsImF2YXRhclVybCI6Imh0dHBzOi8vZDJ4dTFoZG9taDNucnguY2xvdWRmcm9udC5uZXQvZGVmYXVsdF9hdmF0YXJzL1VudGl0bGVkLTFfMDAwMF9ncmVlbi5wbmciLCJ0b2tlbiI6bnVsbCwicm9sZXMiOltdLCJjbGllbnQiOiJpT1MvMS4yLjE5IGI3OSIsImd1ZXN0SWQiOm51bGwsInYiOjEsImlhdCI6MTUzNzgzNzQ2NywiZXhwIjoxNTQ1NjEzNDY3LCJpc3MiOiJoeXBlcXVpei8xIn0.TYOuoH3qTANR7HSrhg1VtGyILrUKbm8TPUVspKgHVvQ'},
uri: 'https://api-quiz.hype.space/config'
}, function (err, ress, body) {
//it works!