{"action":"created","issue":{"url":"https://api.github.com/repos/sametmax/0bin/issues/105","repository_url":"https://api.github.com/repos/sametmax/0bin","labels_url":"https://api.github.com/repos/sametmax/0bin/issues/105/labels{/name}","comments_url":"https://api.github.com/repos/sametmax/0bin/issues/105/comments","events_url":"https://api.github.com/repos/sametmax/0bin/issues/105/events","html_url":"https://github.com/sametmax/0bin/issues/105","id":159579551,"number":105,"title":"just a feedback with my wishlist. hope it's useful","user":{"login":"dl9sau","id":18572280,"avatar_url":"https://avatars.githubusercontent.com/u/18572280?v=3","gravatar_id":"","url":"https://api.github.com/users/dl9sau","html_url":"https://github.com/dl9sau","followers_url":"https://api.github.com/users/dl9sau/followers","following_url":"https://api.github.com/users/dl9sau/following{/other_user}","gists_url":"https://api.github.com/users/dl9sau/gists{/gist_id}","starred_url":"https://api.github.com/users/dl9sau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dl9sau/subscriptions","organizations_url":"https://api.github.com/users/dl9sau/orgs","repos_url":"https://api.github.com/users/dl9sau/repos","events_url":"https://api.github.com/users/dl9sau/events{/privacy}","received_events_url":"https://api.github.com/users/dl9sau/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-10T07:57:53Z","updated_at":"2016-06-10T14:40:33Z","closed_at":null,"body":"Just a feedback for 0bin with problems I stumbled over, how I solved, and what I'm missing.\r\nThank you for that nice software.\r\n\r\nApplied patches\r\n  - https://github.com/sametmax/0bin/pull/95\r\n  - https://github.com/sametmax/0bin/pull/99\r\n  - https://github.com/sametmax/0bin/pull/89\r\n\r\nRecommendation:\r\n  chown www-data 0bin/zerobin/content; chmod 700 0bin/zerobin/content\r\n\r\nMy changes\r\n  - expiry\r\n      DURATIONS = {\r\n    +       '1_min': 60,\r\n    +       '10_min': 600,\r\n    +       '1_hour': 3600,\r\n    +       '10_hours': 36000,\r\n             '1_day': 24 * 3600,\r\n    +        '3_days': 3 * 24 * 3600,\r\n    +        '1_week': 7 * 24 * 3600,\r\n             '1_month': 30 * 24 * 3600,\r\n             'never': 365 * 24 * 3600 * 100,\r\n\r\n\r\nProblems\r\n  - with WSGI, URLs are not relative to the alias ->\r\n    - 0bin/paste becomes /paste\r\n      => needed to add\r\n        WSGIScriptAlias /paste /srv/www/0bin/zerobin/app.wsgi/paste\r\n        WSGIScriptAlias /static /srv/www/0bin/zerobin/app.wsgi/static\r\n    - home (click top left on \"0bin.net\") becomes / -> leaves 0bin and goes to the webserver root\r\n      -> commented that url out\r\n    - \"New paste\" button: becomes / -> leaves 0bin and goes to the webserver root\r\n  - problems with 0bin/pull/99 (Add support for more binary file types (audio, video and other binaries)):\r\n    - pictures are ok. An audio file I tested did not work. PDF, odt, tar pastes raw (after heavy CPU load by the browser)\r\n    - download button appears twice in a line, the left one has the correct URL for the image file; the right one (which is always present, text or binary) is pointing to / (-> in my config, I leave 0bin and land on my webserver-root) => this original download button does not work.\r\n    - google chrome and safari on (an old) IOS do the download of a picture flawlessly.\r\n    - osx: firefox eats the filename-suffix on download.\r\n    - android: firefox tends to segfault. another browser also eats the filename-suffix. chrome did not work (but this may be a security setting I did)\r\n    - would have contacted author xdarklight but did not found how..\r\n\r\nDoes not work:\r\n  - zerobin/cmd.py -> now using apache2 with WSGIDaemonProcess, WSGIScriptAlias /0bin ...zerobin/app.wsgi\r\n    with zerobin/app.wsgi:\r\n      import os, sys\r\n        ZEROBIN_PARENT_DIR = os.path.dirname(os.path.dirname(__file__))\r\n        sys.path.insert(0, ZEROBIN_PARENT_DIR)\r\n        from zerobin.routes import get_app\r\n\r\nMy todo:\r\n  make CSP config work, i.E.\r\n    Header set Content-Security-Policy \"default-src 'none'; script-src 'unsafe-inline'; style-src 'unsafe-inline'; img-src 'self'\r\n\r\nFeature request:\r\n  - upload all file types (esp. pdf; pdf preview would be nice)\r\n  - store data on the server in binary form (saves hd space)\r\n  - burn after reading: counter for n times.\r\n  - optionaly (user defined on upload) save and show IPv4/IPv6 addresses and timestamps when a file was downloaded (-> transparency, if something suspicious has happened before)\r\n  - delete button for being able to remove a paste before expiry\r\n"},"comment":{"url":"https://api.github.com/repos/sametmax/0bin/issues/comments/225200565","html_url":"https://github.com/sametmax/0bin/issues/105#issuecomment-225200565","issue_url":"https://api.github.com/repos/sametmax/0bin/issues/105","id":225200565,"user":{"login":"sametmax","id":1673950,"avatar_url":"https://avatars.githubusercontent.com/u/1673950?v=3","gravatar_id":"","url":"https://api.github.com/users/sametmax","html_url":"https://github.com/sametmax","followers_url":"https://api.github.com/users/sametmax/followers","following_url":"https://api.github.com/users/sametmax/following{/other_user}","gists_url":"https://api.github.com/users/sametmax/gists{/gist_id}","starred_url":"https://api.github.com/users/sametmax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sametmax/subscriptions","organizations_url":"https://api.github.com/users/sametmax/orgs","repos_url":"https://api.github.com/users/sametmax/repos","events_url":"https://api.github.com/users/sametmax/events{/privacy}","received_events_url":"https://api.github.com/users/sametmax/received_events","type":"User","site_admin":false},"created_at":"2016-06-10T14:40:32Z","updated_at":"2016-06-10T14:40:32Z","body":"Than for your feed back. There are a lot of things here, so I think they will be splitted into seperate issues."}}
{"actor":{"display_login":"sametmax"}}