payload: {"action":"created","issue":{"url":"https://api.github.com/repos/Maxthod/reverseproxy/issues/1","repository_url":"https://api.github.com/repos/Maxthod/reverseproxy","labels_url":"https://api.github.com/repos/Maxthod/reverseproxy/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/Maxthod/reverseproxy/issues/1/comments","events_url":"https://api.github.com/repos/Maxthod/reverseproxy/issues/1/events","html_url":"https://github.com/Maxthod/reverseproxy/issues/1","id":455449129,"node_id":"MDU6SXNzdWU0NTU0NDkxMjk=","number":1,"title":"Nginx default route for HTTP and HTTPs","user":{"login":"Maxthod","id":47720660,"node_id":"MDQ6VXNlcjQ3NzIwNjYw","avatar_url":"https://avatars0.githubusercontent.com/u/47720660?v=4","gravatar_id":"","url":"https://api.github.com/users/Maxthod","html_url":"https://github.com/Maxthod","followers_url":"https://api.github.com/users/Maxthod/followers","following_url":"https://api.github.com/users/Maxthod/following{/other_user}","gists_url":"https://api.github.com/users/Maxthod/gists{/gist_id}","starred_url":"https://api.github.com/users/Maxthod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Maxthod/subscriptions","organizations_url":"https://api.github.com/users/Maxthod/orgs","repos_url":"https://api.github.com/users/Maxthod/repos","events_url":"https://api.github.com/users/Maxthod/events{/privacy}","received_events_url":"https://api.github.com/users/Maxthod/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-06-12T22:18:51Z","updated_at":"2019-06-12T22:50:05Z","closed_at":null,"author_association":"OWNER","body":"We make a default cone like this one : \r\n```\r\nserver {\r\n    listen      80;\r\n    server_name \"\";\r\n    \r\n\treturn      444;\r\n\r\n    #return      200 'gangnam style!';\r\n    #add_header Content-Type text/plain;\r\n}\r\n\r\nserver {\r\n    listen      443;\r\n    server_name \"\";\r\n    \r\n   \tssl_certificate /etc/nginx/ssl/nginx.crt;\r\n    ssl_certificate_key /etc/nginx/ssl/nginx.key;\r\n    return       404;\r\n\r\n    #return      200 'gangnam style!';\r\n    #add_header Content-Type text/plain;\r\n}\r\n```\r\n \r\n\r\nand then we serve it.\r\n\r\nOh and we generate those self sign certificat with something like that : \r\n\r\n\r\n```openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/nginx/ssl/nginx.key -out /etc/nginx/ssl/nginx.crt```"},"comment":{"url":"https://api.github.com/repos/Maxthod/reverseproxy/issues/comments/501482617","html_url":"https://github.com/Maxthod/reverseproxy/issues/1#issuecomment-501482617","issue_url":"https://api.github.com/repos/Maxthod/reverseproxy/issues/1","id":501482617,"node_id":"MDEyOklzc3VlQ29tbWVudDUwMTQ4MjYxNw==","user":{"login":"Maxthod","id":47720660,"node_id":"MDQ6VXNlcjQ3NzIwNjYw","avatar_url":"https://avatars0.githubusercontent.com/u/47720660?v=4","gravatar_id":"","url":"https://api.github.com/users/Maxthod","html_url":"https://github.com/Maxthod","followers_url":"https://api.github.com/users/Maxthod/followers","following_url":"https://api.github.com/users/Maxthod/following{/other_user}","gists_url":"https://api.github.com/users/Maxthod/gists{/gist_id}","starred_url":"https://api.github.com/users/Maxthod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Maxthod/subscriptions","organizations_url":"https://api.github.com/users/Maxthod/orgs","repos_url":"https://api.github.com/users/Maxthod/repos","events_url":"https://api.github.com/users/Maxthod/events{/privacy}","received_events_url":"https://api.github.com/users/Maxthod/received_events","type":"User","site_admin":false},"created_at":"2019-06-12T22:50:05Z","updated_at":"2019-06-12T22:50:05Z","author_association":"OWNER","body":"This default conf works well.\r\n\r\n```\r\nserver {\r\n    listen      80 default_server;\r\n    server_name \"\";\r\n    \r\n    location / {\r\n    \tif ($scheme != \"https\"){\r\n    \t\treturn 301 https://$server_name$request_uri;\r\n    \t} \r\n\t\r\n\treturn 444;\r\n    }\r\n    \t\r\n    location ^~ /.well-known/acme-challenge/{\r\n    \tdefault_type \"text/plain\";\r\n    \troot /var/www/certbot/;\t\r\n    }\r\n    \r\n}\r\n```"}}
other: {"actor":{"display_login":"Maxthod"}}