home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

5 rows where issue = 722758132 sorted by updated_at descending

✖
✖

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: created_at (date), updated_at (date)

user 1

  • simonw 5

issue 1

  • Add documentation on serving Datasette behind a proxy using base_url · 5 ✖

author_association 1

  • OWNER 5
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions issue performed_via_github_app
719988113 https://github.com/simonw/datasette/issues/1027#issuecomment-719988113 https://api.github.com/repos/simonw/datasette/issues/1027 MDEyOklzc3VlQ29tbWVudDcxOTk4ODExMw== simonw 9599 2020-10-31T21:03:37Z 2020-10-31T21:03:37Z OWNER

On my Mac, I run:

datasette . -p 8009 --config base_url:/datasette-prefix/

Then I edited /usr/local/etc/httpd/httpd.conf and add this section: LoadModule proxy_module lib/httpd/modules/mod_proxy.so LoadModule proxy_http_module lib/httpd/modules/mod_proxy_http.so ProxyPass /datasette-prefix/ http://localhost:8009/datasette-prefix/ I ran Apache in the foreground like so:

apachectl -X

Now hitting http://localhost:8081/datasette-prefix/fixtures/compound_three_primary_keys worked!

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Add documentation on serving Datasette behind a proxy using base_url 722758132  
712320103 https://github.com/simonw/datasette/issues/1027#issuecomment-712320103 https://api.github.com/repos/simonw/datasette/issues/1027 MDEyOklzc3VlQ29tbWVudDcxMjMyMDEwMw== simonw 9599 2020-10-19T17:35:04Z 2020-10-19T17:35:04Z OWNER

Still need to configure proxying though. https://www.netnea.com/cms/apache-tutorial-9_setting-up-a-reverse-proxy/

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Add documentation on serving Datasette behind a proxy using base_url 722758132  
710750038 https://github.com/simonw/datasette/issues/1027#issuecomment-710750038 https://api.github.com/repos/simonw/datasette/issues/1027 MDEyOklzc3VlQ29tbWVudDcxMDc1MDAzOA== simonw 9599 2020-10-17T05:00:19Z 2020-10-17T05:00:19Z OWNER

Running apachectl -X appears to run Apache in the foreground so I can hit Ctrl+C to quit it again, using the config file at /usr/local/etc/httpd/httpd.conf and serving the index.html file from /usr/local/var/www (which confusingly says "Welcome to nginx", presumably because I installed nginx via Homebrew earlier).

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Add documentation on serving Datasette behind a proxy using base_url 722758132  
709647525 https://github.com/simonw/datasette/issues/1027#issuecomment-709647525 https://api.github.com/repos/simonw/datasette/issues/1027 MDEyOklzc3VlQ29tbWVudDcwOTY0NzUyNQ== simonw 9599 2020-10-15T23:49:51Z 2020-10-15T23:51:39Z OWNER

I'll install Apache on macOS to figure this out using https://formulae.brew.sh/formula/httpd

brew install httpd output this at the end:

``` ==> httpd DocumentRoot is /usr/local/var/www.

The default ports have been set in /usr/local/etc/httpd/httpd.conf to 8080 and in /usr/local/etc/httpd/extra/httpd-ssl.conf to 8443 so that httpd can run without sudo.

To have launchd start httpd now and restart at login: brew services start httpd Or, if you don't want/need a background service you can just run: apachectl start ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Add documentation on serving Datasette behind a proxy using base_url 722758132  
709646865 https://github.com/simonw/datasette/issues/1027#issuecomment-709646865 https://api.github.com/repos/simonw/datasette/issues/1027 MDEyOklzc3VlQ29tbWVudDcwOTY0Njg2NQ== simonw 9599 2020-10-15T23:47:08Z 2020-10-15T23:47:08Z OWNER

It should cover both nginx and Apache. nginx config is here: https://github.com/simonw/datasette/issues/1024#issuecomment-709598324

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Add documentation on serving Datasette behind a proxy using base_url 722758132  

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE [issue_comments] (
   [html_url] TEXT,
   [issue_url] TEXT,
   [id] INTEGER PRIMARY KEY,
   [node_id] TEXT,
   [user] INTEGER REFERENCES [users]([id]),
   [created_at] TEXT,
   [updated_at] TEXT,
   [author_association] TEXT,
   [body] TEXT,
   [reactions] TEXT,
   [issue] INTEGER REFERENCES [issues]([id])
, [performed_via_github_app] TEXT);
CREATE INDEX [idx_issue_comments_issue]
                ON [issue_comments] ([issue]);
CREATE INDEX [idx_issue_comments_user]
                ON [issue_comments] ([user]);
Powered by Datasette · Queries took 21.051ms · About: github-to-sqlite
  • Sort ascending
  • Sort descending
  • Facet by this
  • Hide this column
  • Show all columns
  • Show not-blank rows