-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #267 from CannonLock/dev-documentation
Add some documentation on developing the website
- Loading branch information
Showing
3 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
user nginx; | ||
worker_processes auto; ## Default: 1 | ||
worker_rlimit_nofile 8192; | ||
|
||
error_log /var/log/nginx/error.log notice; | ||
pid /var/run/nginx.pid; | ||
|
||
events { | ||
worker_connections 4096; ## Default: 1024 | ||
} | ||
|
||
http { | ||
include /etc/nginx/mime.types; | ||
default_type application/octet-stream; | ||
|
||
index index.html index.htm index.php; | ||
|
||
server { | ||
listen 8443; | ||
|
||
location /api { | ||
proxy_read_timeout 300s; | ||
proxy_connect_timeout 10s; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_pass https://host.docker.internal:8444; | ||
} | ||
|
||
location /view { | ||
proxy_read_timeout 300s; | ||
proxy_connect_timeout 10s; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_pass http://host.docker.internal:3001; | ||
} | ||
|
||
gzip on; | ||
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
docker restart pelican-dev-proxy | ||
docker run --name pelican-dev-proxy -it -p 8443:8443 -v $0/../nginx.conf:/etc/nginx/nginx.conf:ro -d nginx |