Skip to content

Commit 4886e72

Browse files
committed
initial nonsense
1 parent 7106d2d commit 4886e72

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

coder-base/config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ exports.listenIP = null; //Defaults to *
33
exports.listenPort = '8081'; //the SSL port things run on
44
exports.httpListenPort = '8080'; //this will all be redirected to SSL
55
exports.cacheApps = true;
6-
exports.httpVisiblePort = '80'; //forwarded http port the user sees
7-
exports.httpsVisiblePort = '443'; //forwarded https port the user sees
6+
exports.httpVisiblePort = '8080'; //forwarded http port the user sees
7+
exports.httpsVisiblePort = '8081'; //forwarded https port the user sees
88

99

1010
//SSL Info

coder-base/server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ var apphandler = function( req, res, appdir ) {
6565
util.log( "GET: " + apppath + " " + appname );
6666

6767
//Redirect to sign-in for unauthenticated users
68-
publicAllowed = ["auth"]; //apps that are exempt from any login (should only be auth)
68+
publicAllowed = ["auth","wifi"]; //apps that are exempt from any login (should only be auth)
6969
auth = require(appdir + "auth" + "/app");
7070
user = auth.isAuthenticated(req, res);
7171
if ( !user && publicAllowed.indexOf( appname ) < 0) {
@@ -250,7 +250,7 @@ sslapp.use( express.session({
250250
sslapp.use( '/static', express.static( __dirname + '/static' ) );
251251
sslapp.get( '/', function( req, res ) {
252252
util.log( 'GET: /' );
253-
res.redirect( '/app/auth' );
253+
res.redirect( '/app/wifi' );
254254
});
255255
sslapp.all( /^\/app\/(\w+)\/(.*)$/, function( req, res ) { apphandler( req, res, __dirname + '/apps/'); } );
256256
sslapp.all( /^\/app\/(\w+)\/$/, function( req, res ) { apphandler( req, res, __dirname + '/apps/'); } );

coder-base/sudo_scripts/setpipass

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
#!/bin/sh
2-
/usr/bin/passwd pi
1+

0 commit comments

Comments
 (0)