Skip to content
This repository was archived by the owner on Jul 19, 2024. It is now read-only.

Commit 671a70a

Browse files
author
Matt Mason
committed
https config for dashboard, rename secrets to local
1 parent 03932e5 commit 671a70a

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ var config = parseServerConfig(__dirname, {
1515
var app = express();
1616
app.use('/public', express.static(__dirname + '/public'));
1717
app.use('/parse', new ParseServer(config.server));
18-
app.use('/parse-dashboard', ParseDashboard(config.dashboard));
18+
app.use('/parse-dashboard', ParseDashboard(config.dashboard, true));
1919

2020
var httpServer = http.createServer(app);
2121
httpServer.listen(process.env.PORT || url.parse(config.server.serverURL).port, function () {

local.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
server: {},
3+
dashboard: {},
4+
storage: {},
5+
push: {}
6+
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
},
1717
"scripts": {
1818
"start": "node index.js",
19-
"postinstall": "git update-index --skip-worktree secrets.js & exit 0"
19+
"postinstall": "git update-index --skip-worktree local.js & exit 0"
2020
},
2121
"engines": {
2222
"node": "4.3"

web.config

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@
1515
<add name="iisnode" path="index.js" verb="*" modules="iisnode"/>
1616
</handlers>
1717
<rewrite>
18+
<rule name="Force HTTPS" enabled="true">
19+
<match url="(.*)" ignoreCase="false" />
20+
<conditions>
21+
<add input="{HTTPS}" pattern="off" />
22+
</conditions>
23+
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" appendQueryString="true" redirectType="Permanent" />
24+
</rule>
25+
1826
<rules>
1927
<!-- Do not interfere with requests for node-inspector debugging -->
2028
<rule name="NodeInspector" patternSyntax="ECMAScript" stopProcessing="true">

0 commit comments

Comments
 (0)