Advertisement
Guest User

Untitled

a guest
Jan 12th, 2017
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.54 KB | None | 0 0
  1. c.NotebookApp.password = u'sha1:'
  2. c.NotebookApp.open_browser = False
  3. c.NotebookApp.port = 9999
  4. c.NotebookApp.base_url = '/notebook/'
  5. c.NotebookApp.allow_origin = '*'
  6. c.NotebookApp.trust_xheaders = True
  7.  
  8. server {
  9. listen 80;
  10.  
  11.  
  12. server_name example.domain.com;
  13.  
  14. return 301 https://$server_name$request_uri;
  15. }
  16.  
  17. server {
  18. listen 443 default_server ssl;
  19. server_name example.domain.com;
  20. keepalive_timeout 70;
  21.  
  22. ssl_certificate chained.crt;
  23. ssl_certificate_key .key;
  24. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  25. ssl_ciphers HIGH:!aNULL:!MD5;
  26.  
  27. location / {
  28. proxy_pass http://localhost:8081;
  29. proxy_http_version 1.1;
  30. proxy_set_header Upgrade $http_upgrade;
  31. proxy_set_header Connection 'upgrade';
  32. proxy_set_header Host $host;
  33. proxy_cache_bypass $http_upgrade;
  34. }
  35.  
  36.  
  37. location /notebook {
  38. proxy_pass http://localhost:9999/notebook;
  39. proxy_set_header X-Real_IP $remote_addr;
  40. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  41. proxy_set_header X-NginX-Proxy true;
  42. proxy_ssl_session_reuse off;
  43. proxy_set_header Host $http_host;
  44.  
  45. proxy_redirect off;
  46. proxy_http_version 1.1;
  47. proxy_set_header Upgrade $http_upgrade;
  48. proxy_set_header Connection "upgrade";
  49. }
  50.  
  51. location /notebook/nbextensions {
  52.  
  53. proxy_pass http://localhost:9999/notebook/nbextensions/;
  54.  
  55. proxy_set_header X-Real_IP $remote_addr;
  56. proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  57. proxy_set_header X-NginX-Proxy true;
  58. proxy_ssl_session_reuse off;
  59. proxy_set_header Host $http_host;
  60.  
  61. # to configure the kernel for python
  62. proxy_redirect off;
  63. proxy_http_version 1.1;
  64. proxy_set_header Upgrade $http_upgrade;
  65. proxy_set_header Connection "upgrade";
  66. }
  67. }
  68.  
  69. [W 11:02:37.568 NotebookApp] Unexpected error while saving file: notebook.ipynb [|
  70. Errno 13] Permission denied: '/.ipynb_checkpoints/notebook-checkpoint.ipynb'|
  71. [E 11:02:37.569 NotebookApp] { |
  72. "Content-Type": "application/json", |
  73. "Connection": "upgrade", |
  74. "Content-Length": "4600", |
  75. "X-Real_ip": "xxx.xxx.xxx.xxx", |
  76. "X-Xsrftoken": "2|f9bfac9e|92b9bb14e19945238a1b3445e08c86f7|1484213065", |
  77. "Cookie": "_xsrf=2|f9bfac9e|92b9bb14e19945238a1b3445e08c86f7|1484213065; username-example-domain-com="2|1:0|10:1484213084|27:us|
  78. ername-example-domain-com|44:Mjk3MDYzYWU2M2FkNGVmNDlkZWFiMGY4NjU5NDZlOTU=|8b4ceb3a6ebd248a84beeffd867815c7269a98f2ba1a360562034ca21c95|
  79. ae9a"", |
  80. "Accept-Encoding": "gzip, deflate, br", |
  81. "User-Agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0", |
  82. "X-Nginx-Proxy": "true", |
  83. "Referer": "https://example.domain.com/notebook/notebooks/notebook.ipynb", |
  84. "Accept-Language": "en-US,en;q=0.5", |
  85. "Accept": "application/json, text/javascript, */*; q=0.01", |
  86. "Host": "example.domain.com", |
  87. "X-Forwarded-For": "157.181.241.173", |
  88. "X-Requested-With": "XMLHttpRequest" |
  89. }
  90. [E 11:02:37.569 NotebookApp] 500 PUT /notebook/api/contents/notebook.ipynb (127.0
  91. .0.1) 169.93ms referer=https://example.domain.com/notebook/notebooks/notebook.ipynb
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement