you are viewing a single comment's thread.

view the rest of the comments →

[–]magnora7[S] 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (18 children)

So it was working awesome, and then I tried to create a !chat_widget beneath your functioning one in that link, and then it broke all the chat windows and is asking me to log in to the Lounge. Is there a limit to how many channels you can create? Does creating a chat window in reply to a chat window break it? Or maybe the settings are wrong so it doesn't work in the first place except when you do it?

Anyway, it was working great, other than it seemed to see me as a guest in the !chat_widget you created, instead of as magnora7, and now it's logged out of the lounge because I made a new one.

Is the lounge username and password just one for the whole site to make the app function, or does each user have their own login and password with the Lounge?

[–][deleted] 2 insightful - 1 fun2 insightful - 0 fun3 insightful - 1 fun -  (17 children)

Is there a limit to how many channels you can create?

Not that I'm aware of.

Does creating a chat window in reply to a chat window break it?

It shouldn't

You can log yourself out of chat if you change your irc password... (since you didn't have a default chat password you can delete the password, logout and login to reddit and that might fix. if still not working, try changing chat username to magnora7-1)

[–]magnora7[S] 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (16 children)

Oh hey it worked, password was same as username. Cool, thanks man. It's that way for every user I guess? Seems good

[–][deleted] 2 insightful - 2 fun2 insightful - 1 fun3 insightful - 2 fun -  (15 children)

sweet. the new default for new users is a random password, but for existing accounts like yours the default is the username. We'll manually update your account sometime so you have a secure chat password.

[–]magnora7[S] 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (14 children)

Ah ok, cool. We should give users their passwords in case they get logged out like me. If you want to go back to username=password that's fine by me, then we don't have to send out automated messages with passwords and all that stuff. Plus they can change it if they like, as you said. My 2 cents. But I can see the security issues too, so your change makes sense.

Whatever you think works best is fine, but people should at least have access to their passwords in case they get accidentally logged out like I did, however you want to accomplish that.

[–][deleted] 2 insightful - 2 fun2 insightful - 1 fun3 insightful - 2 fun -  (13 children)

Agreed. Try registering with a new account and you will see a default random password. So only you and I have this weird alternate password or a blank password. So I think nothing to do here.

[–]magnora7[S] 2 insightful - 1 fun2 insightful - 0 fun3 insightful - 1 fun -  (0 children)

Ah I see it now, under 'preferences' on reddit next to my reddit username. With your nice instructions

[–]magnora7[S] 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (0 children)

Sorry but where do they see the password exactly?

[–]magnora7[S] 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (10 children)

This is unrelated, but I just spent an hour trying to figure out how to change the default subreddits for new users, and I'm having a lot of trouble for something that seems like it would be simple. I thought it'd be in that development.update file or something, or maybe in the reddit UI, but I can't find it anywhere.

The inject_test_data.py has a line that defines the defaults, which is the only place in all the files where I can find a mention of "askhistorians", which is currently a default sub:

srs = [Subreddit._by_name(n) for n in ("pics", "videos", "askhistorians")]

LocalizedDefaultSubreddits.set_global_srs(srs)

So maybe we can just put that line in another python file somewhere and run it with a new list or something. Is that the way to update the defaults? Seems weird. Any ideas where to put or run this code? Is this best done in the command-line by running a small custom python file or something? I just don't get exactly how to make it happen, if you've got any ideas to try I'm all ears... I don't get where the actual list is stored or how to correctly write to that place, I guess it's in the postgresql database?

[–][deleted] 2 insightful - 2 fun2 insightful - 1 fun3 insightful - 2 fun -  (9 children)

You're on the money. I will try to find this in the db.

[–]magnora7[S] 1 insightful - 1 fun1 insightful - 0 fun2 insightful - 1 fun -  (8 children)

Sounds good. I'm surprised it's not easier to access, but oh well.

I'm creating the firewall right now. Do you know what ports you want left open? Right now we're going to enable only 80, 22, 8080, 443, 10000, and that's it. If you have any others you want left open, let me know and I'll add the exceptions.

We're also creating a backup right now, and an automated backup will now occur every Tuesday at 2am, on the server level.

[–][deleted] 2 insightful - 2 fun2 insightful - 1 fun3 insightful - 2 fun -  (7 children)

I think the default subs are in the Cassandra db, not in postgres. Haven't figured out how to query or update cassandra yet.

Chat needs port 8090 open. We should ensure postgres remote access is not allowed (allow ssh connections to postgres only), I forget which port this is.

Glad to hear about the backups, that is essential.

Some other last minute items:

If you want to create a public free github account , or if you have one, we can push our reddit changes. Can show people for transparency, but mainly that would be an off site backup.

Db password: we're still using the default password... we really need to change this.

Api credentials: there might be a default api account active, will have to check example.ini and ensure we're not exposing ourselves.

Email: I have not tested at all. If it's not working, maybe we put a notice somewhere until we get something in place. The ideal long term solution for me is outsourced mail sending, like SendGrid or Mandrill (pretty inexpensive but not free)