Skip to content

Instantly share code, notes, and snippets.

@portey
Created August 8, 2017 11:14
Show Gist options
  • Select an option

  • Save portey/380841027f4b576edb98d9582ac6099f to your computer and use it in GitHub Desktop.

Select an option

Save portey/380841027f4b576edb98d9582ac6099f to your computer and use it in GitHub Desktop.
Imap:
mutation {
createAccount(
type:IMAP,
credentials: {
email:"",
password:"",
host:"mail.digitalcares.com"
}
) {
id
}
}
Gmail:
mutation {
generateGoogleAccountUrl
}
mutation {
createAccount(
type:GMAIL
code:"4/5LpIshluMFRtGjjNGyXT3jgN4Q1GKocLT9TrWrp_bqk"
) {
id
}
}
http://backend.onefile2.dev
project/{project name}/{app name}/code
server {
listen 80;
server_name "~^backend\.(?<application>[a-zA-Z0-9_-]+)\.dev$";
root /Users/portey/projects/$application/backend-app/web;
error_log /Users/portey/projects/nginx.error_log info;
try_files $uri $uri/ @rewrite;
location @rewrite {
rewrite ^/(.*)$ /app.php/$1;
}
location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
if (!-f $document_root$fastcgi_script_name) {
return 404;
}
fastcgi_buffers 4 512k;
fastcgi_buffer_size 256k;
fastcgi_busy_buffers_size 512k;
fastcgi_index app.php;
fastcgi_read_timeout 60m;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param WEBSITE_ID ca;
include fastcgi_params;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment