/ot/ - testing for OPchan

gotta catch 'em all


New Thread:



Max Message Length: 4096
Make sure I have a block bypass
Files:
Spoiler Max File Size: 1.00 MB
File Limit Per Post: 3
Remember to follow the rules .


senseless 03/27/2017 (Mon) 20:17:27 [Preview] No. 1 [Reply]
● lynxchan.service - LynxChan
Loaded: loaded (/etc/systemd/system/lynxchan.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2017-03-27 15:53:19 EDT; 22min ago
Process: 1020 ExecStart=/usr/bin/lynxchan (code=exited, status=1/FAILURE)
Main PID: 1020 (code=exited, status=1/FAILURE)

Mar 27 15:53:19 localhost.localdomain lynxchan[1020]: at Connection.<anonymous> (/home/node/LynxChan/src/be/node_modules/mongodb-core/lib/connection/pool.js:260:12)
Mar 27 15:53:19 localhost.localdomain lynxchan[1020]: at Connection.g (events.js:291:16)
Mar 27 15:53:19 localhost.localdomain lynxchan[1020]: at emitTwo (events.js:106:13)
Mar 27 15:53:19 localhost.localdomain lynxchan[1020]: at Connection.emit (events.js:191:7)
Mar 27 15:53:19 localhost.localdomain lynxchan[1020]: at Socket.<anonymous> (/home/node/LynxChan/src/be/node_modules/mongodb-core/lib/connection/connection.js:162:49)
Mar 27 15:53:19 localhost.localdomain lynxchan[1020]: at Socket.g (events.js:291:16)
Mar 27 15:53:19 localhost.localdomain lynxchan[1020]: at emitOne (events.js:96:13)
Mar 27 15:53:19 localhost.localdomain systemd[1]: lynxchan.service: main process exited, code=exited, status=1/FAILURE
Mar 27 15:53:19 localhost.localdomain systemd[1]: Unit lynxchan.service entered failed state.
Mar 27 15:53:19 localhost.localdomain systemd[1]: lynxchan.service failed.
41 posts and 2 images omitted.

senseless Anonymous 10/21/2017 (Sat) 20:45:47 [Preview] No. 52
Open file ( 129.21 KB 1920x1080 1.png )

senseless 10/21/2017 (Sat) 20:49:35 [Preview] No. 53
Open file ( 103.13 KB 1920x1080 2.png )
And this site tells me I need a block bypass even when I don't, if I have "Make sure I have a block bypass" selected.

senseless 11/25/2017 (Sat) 22:51:40 [Preview] No. 55
[senseless@why fe]$ git pull
remote: Counting objects: 644, done.
remote: Compressing objects: 100% (206/206), done.
remote: Total 644 (delta 484), reused 556 (delta 436)
Receiving objects: 100% (644/644), 625.60 KiB | 0 bytes/s, done.
Resolving deltas: 100% (484/484), done.
From https://gitgud.io/LynxChan/PenumbraLynx
12dbd73..9d5a201 master -> origin/master
3cbf38f..b391418 mew -> origin/mew
Auto-merging static/js/login.js
CONFLICT (content): Merge conflict in static/js/login.js
Auto-merging static/js/api.js
CONFLICT (content): Merge conflict in static/js/api.js
Automatic merge failed; fix conflicts and then commit the result.
[senseless@why fe]$ git status
# On branch master
# Your branch and 'origin/master' have diverged,
Message too long. Click here to view full text.

senseless 11/25/2017 (Sat) 23:00:25 [Preview] No. 56
[senseless@why fe]$ git reset --hard HEAD~1
HEAD is now at 965ae44 Merge branch 'master' of https://gitgud.io/LynxChan/PenumbraLynx
[senseless@why fe]$ git pull
Auto-merging static/js/login.js
CONFLICT (content): Merge conflict in static/js/login.js
Auto-merging static/js/api.js
CONFLICT (content): Merge conflict in static/js/api.js
Automatic merge failed; fix conflicts and then commit the result.
[senseless@why fe]$ git reset --hard HEAD~1
HEAD is now at 0a8c71d Merge branch 'master' of https://gitgud.io/LynxChan/PenumbraLynx
[senseless@why fe]$ git reset --hard HEAD~1
HEAD is now at a84cd6f Merge branch 'master' of https://gitgud.io/LynxChan/PenumbraLynx
[senseless@why fe]$ git pull
Auto-merging static/js/login.js
CONFLICT (content): Merge conflict in static/js/login.js
Auto-merging static/js/api.js
CONFLICT (content): Merge conflict in static/js/api.js
Message too long. Click here to view full text.

senseless 11/25/2017 (Sat) 23:05:26 [Preview] No. 57
commit cee624b06c56b4f6626cd0f1404739b67f1c242e
Merge: 66d0463 c518638
Author: senseless <senseless@operatorchan.org>
Date: Sat Oct 28 08:44:32 2017 -0700

Merge branch 'master' of https://gitgud.io/LynxChan/PenumbraLynx

commit c5186380b7f824472ab8d8ff631eb016fe429683
Author: Sérgio Augusto Vianna <sergio.a.vianna@gmail.com>
Date: Sat Oct 28 13:34:23 2017 -0200

Fixed a bug on the gallery and made it able to pre-load images.

commit 66d0463cb819feabdd787c173f45dd693c04d5d4
Merge: 0d4495f 7a09f76
Author: senseless <senseless@operatorchan.org>
Date: Sat Oct 28 07:25:33 2017 -0700
Message too long. Click here to view full text.



certbot Anonymous 05/10/2017 (Wed) 22:32:24 [Preview] No. 42 [Reply]
to get certs in the first place:

systemctl stop lynxchan
sudo certbot certonly --standalone --rsa-key-size 4096
systemctl start lynxchan

--standalone, because the other modules depend on the server software being apache or nginx, or the server being able to serve arbitrary files from the base directory, ie. mychan.org/right-here, which lynxchan won't do, at least not without using mongofiles, which certbot isn't programmed to deal with. So you might be able to do it with certbot certonly --manual, but then you can't use that for automatically renewing your certs.

4096-bit rsa key, because why not?

add to /etc/crontab Anonymous 05/10/2017 (Wed) 22:52:31 [Preview] No. 43
05 05 * * * root certbot renew --pre-hook "systemctl stop lynxchan" --post-hook "systemctl start lynxchan" --renew-hook "/path/to/renew-cert-hook.sh" --rsa-key-size 4096 --quiet

5:05 am, because that seemed like a time when few people would be on the site, anyway, and also doesn't run right on the hour, to help Let's Encrypt not be hit with all the requests in the same minute. This command is run every day, but only updates the certs if they're within 30 days of expiring. Note this means the certs will be updated every 60 days, not every 90.

--pre-hook is run before attempting to renew the certs
--post-hook is run after attempting to renew the certs
--renew-hook is run after successfully renewing the certs

The --renew-hook script must be set chmod u+x. (I have it set ug+x) If it isn't, certbot will complain that it couldn't find the file on the PATH, which obviously isn't very helpful.

The cronjob must be run by root for the systemctl commands to be successfully executed.

/path/to/renew-cert-hook.sh Anonymous 05/10/2017 (Wed) 22:58:39 [Preview] No. 44
#!/bin/bash

#Modified from /path/to/renew-hook-script listed on
#https://certbot.eff.org/docs/using.html

#Referenced by a cron job in /etc/crontab

set -e

for domain in $RENEWED_DOMAINS; do

case $domain in
mychan.org)

daemon_cert_root=/path/to/LynxChan/src/be

# Make sure the certificate and private key files are
Message too long. Click here to view full text.

Anonymous 05/10/2017 (Wed) 23:00:13 [Preview] No. 45
>>43
>for the systemctl commands to be successfully executed
Also, to do almost everything in the --renew-hook script.

Anonymous 05/11/2017 (Thu) 02:55:00 [Preview] No. 46
Forgot to mention, use the --dry-run flag with all your certbot commands while you're testing out your setup. Otherwise, you'll hit the limit of five certs per week right away and not be able to do anything.



senseless 03/28/2017 (Tue) 07:13:13 [Preview] No. 11 [Reply]
Open file ( 32.15 KB 480x360 hqdefault[1].jpg )
Evidently, you can enter a web address in the file selection dialog, and it works, at least in Chrome on Windows 10.

My mind has been blown.

senseless 03/28/2017 (Tue) 07:26:44 [Preview] No. 12
Open file ( 27.58 KB 480x360 hqdefault[1].jpg )
From what google has shown me, this is due to the operating system handling it, though: downloading the file to a temporary location on the computer, then uploading from there.

senseless 03/28/2017 (Tue) 07:32:41 [Preview] No. 13
Open file ( 20.97 KB 480x360 hqdefault[1].jpg )


Reason:
Password:
Global
Delete only files
Delete media (Actually removes the saved files from the server, standard file deletion only removes the reference to the selected posts)

Captcha(Used only for reporting): No cookies?

[ 1 ]