Skip to content

Commit

Permalink
https config for dashboard, rename secrets to local
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Mason committed May 11, 2016
1 parent 03932e5 commit 671a70a
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -15,7 +15,7 @@ var config = parseServerConfig(__dirname, {
var app = express();
app.use('/public', express.static(__dirname + '/public'));
app.use('/parse', new ParseServer(config.server));
app.use('/parse-dashboard', ParseDashboard(config.dashboard));
app.use('/parse-dashboard', ParseDashboard(config.dashboard, true));

var httpServer = http.createServer(app);
httpServer.listen(process.env.PORT || url.parse(config.server.serverURL).port, function () {
Expand Down
6 changes: 6 additions & 0 deletions local.js
@@ -0,0 +1,6 @@
module.exports = {
server: {},
dashboard: {},
storage: {},
push: {}
}
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -16,7 +16,7 @@
},
"scripts": {
"start": "node index.js",
"postinstall": "git update-index --skip-worktree secrets.js & exit 0"
"postinstall": "git update-index --skip-worktree local.js & exit 0"
},
"engines": {
"node": "4.3"
Expand Down
8 changes: 8 additions & 0 deletions web.config
Expand Up @@ -15,6 +15,14 @@
<add name="iisnode" path="index.js" verb="*" modules="iisnode"/>
</handlers>
<rewrite>
<rule name="Force HTTPS" enabled="true">
<match url="(.*)" ignoreCase="false" />
<conditions>
<add input="{HTTPS}" pattern="off" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" appendQueryString="true" redirectType="Permanent" />
</rule>

<rules>
<!-- Do not interfere with requests for node-inspector debugging -->
<rule name="NodeInspector" patternSyntax="ECMAScript" stopProcessing="true">
Expand Down

0 comments on commit 671a70a

Please sign in to comment.