Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gargantext-ihaskell
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
gargantext-ihaskell
Commits
f3f4873b
Commit
f3f4873b
authored
Apr 15, 2022
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc + nginx conf
parent
2ea5e862
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
63 additions
and
4 deletions
+63
-4
README.md
README.md
+5
-4
nginx.conf
nginx.conf
+58
-0
No files found.
README.md
View file @
f3f4873b
...
...
@@ -23,7 +23,7 @@ The [wiki](https://github.com/gibiansky/IHaskell/wiki) also has more extensive d
Some prerequisites; adapt to your distribution.
```
bash
sudo
apt-get
install
-y
python3-pip git libtinfo-dev libzmq3-dev libcairo2-dev libpango1.0-dev libmagic-dev libblas-dev liblapack-dev
sudo
apt-get
install
-y
python3-pip git libtinfo-dev libzmq3-dev libcairo2-dev libpango1.0-dev libmagic-dev libblas-dev liblapack-dev
virtualenv
```
Install
`stack`
, clone this repository, install Python requirements, install
...
...
@@ -36,15 +36,16 @@ installation, please skip the relevant steps if this is not the case.
curl
-sSL
https://get.haskellstack.org/ | sh
git clone https://github.com/gibiansky/IHaskell
cd
IHaskell
virtualenv
-p
$(
which python3
)
py_env
source
py_env/bin/activate
pip3
install
-r
requirements.txt
stack
--nix
install
--fast
stack
--nix
install
~/.local/bin/ihaskell
install
--stack
```
Run Jupyter.
End then run Jupyter (make sure you are in you Py env):
```
bash
source
~/env/bin/activate
stack
--nix
exec
$(
which jupyter
)
--
notebook
```
...
...
nginx.conf
0 → 100644
View file @
f3f4873b
# top-level http config for websocket headers
# If Upgrade is defined, Connection = upgrade
# If Upgrade is empty, Connection = close
map
$http_upgrade
$connection_upgrade
{
default
upgrade
;
''
close
;
}
# HTTP server to redirect all 80 traffic to SSL/HTTPS
server
{
listen
80
;
server_name
HUB.DOMAIN.TLD
;
# Tell all requests to port 80 to be 302 redirected to HTTPS
return
302
https://
$host$request_uri
;
}
# HTTPS server to handle JupyterHub
server
{
listen
443
;
ssl
on
;
server_name
HUB.DOMAIN.TLD
;
ssl_certificate
/etc/letsencrypt/live/HUB.DOMAIN.TLD/fullchain.pem
;
ssl_certificate_key
/etc/letsencrypt/live/HUB.DOMAIN.TLD/privkey.pem
;
ssl_protocols
TLSv1
TLSv1.1
TLSv1.2
;
ssl_prefer_server_ciphers
on
;
ssl_dhparam
/etc/ssl/certs/dhparam.pem
;
ssl_ciphers
'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA'
;
ssl_session_timeout
1d
;
ssl_session_cache
shared:SSL:50m
;
ssl_stapling
on
;
ssl_stapling_verify
on
;
add_header
Strict-Transport-Security
max-age=15768000
;
# Managing literal requests to the JupyterHub front end
location
/
{
proxy_pass
http://127.0.0.1:8000
;
proxy_set_header
X-Real-IP
$remote_addr
;
proxy_set_header
Host
$host
;
proxy_set_header
X-Forwarded-For
$proxy_add_x_forwarded_for
;
# websocket headers
proxy_http_version
1
.1
;
proxy_set_header
Upgrade
$http_upgrade
;
proxy_set_header
Connection
$connection_upgrade
;
proxy_set_header
X-Scheme
$scheme
;
proxy_buffering
off
;
}
# Managing requests to verify letsencrypt host
location
~
/.well-known
{
allow
all
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment