This repository was archived by the owner on Jul 19, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +16
-2
lines changed Expand file tree Collapse file tree 4 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ var config = parseServerConfig(__dirname, {
15
15
var app = express ( ) ;
16
16
app . use ( '/public' , express . static ( __dirname + '/public' ) ) ;
17
17
app . use ( '/parse' , new ParseServer ( config . server ) ) ;
18
- app . use ( '/parse-dashboard' , ParseDashboard ( config . dashboard ) ) ;
18
+ app . use ( '/parse-dashboard' , ParseDashboard ( config . dashboard , true ) ) ;
19
19
20
20
var httpServer = http . createServer ( app ) ;
21
21
httpServer . listen ( process . env . PORT || url . parse ( config . server . serverURL ) . port , function ( ) {
Original file line number Diff line number Diff line change
1
+ module . exports = {
2
+ server : { } ,
3
+ dashboard : { } ,
4
+ storage : { } ,
5
+ push : { }
6
+ }
Original file line number Diff line number Diff line change 16
16
},
17
17
"scripts" : {
18
18
"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"
20
20
},
21
21
"engines" : {
22
22
"node" : " 4.3"
Original file line number Diff line number Diff line change 15
15
<add name =" iisnode" path =" index.js" verb =" *" modules =" iisnode" />
16
16
</handlers >
17
17
<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
+
18
26
<rules >
19
27
<!-- Do not interfere with requests for node-inspector debugging -->
20
28
<rule name =" NodeInspector" patternSyntax =" ECMAScript" stopProcessing =" true" >
You can’t perform that action at this time.
0 commit comments