Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
py-3d-face-reconstruction
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Richard Torenvliet
py-3d-face-reconstruction
Commits
8f6cde84
Commit
8f6cde84
authored
Nov 14, 2016
by
Richard Torenvliet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add example file for nginx config for remote server
parent
12d33735
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
55 additions
and
0 deletions
+55
-0
scripts/nginx_config
scripts/nginx_config
+55
-0
No files found.
scripts/nginx_config
0 → 100644
View file @
8f6cde84
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
upstream websocket {
server localhost:6930;
}
server {
error_log /var/log/nginx/richard.kompiler.org_error.log debug;
listen 443 ssl;
server_name richard.kompiler.org;
ssl on;
ssl_certificate /etc/letsencrypt/live/kompiler.org/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/kompiler.org/privkey.pem;
location / {
root /var/www/richard.kompiler.org/;
}
location /face-reconstruction/ {
root /var/www/richard.kompiler.org/;
try_files $uri $uri/ /face-reconstruction/index.html;
}
location /api/v1 {
proxy_pass http://localhost:6930;
proxy_set_header X-Forwarded-Ssl on;
include /etc/nginx/proxy_params;
client_max_body_size 16g;
client_body_in_file_only clean;
client_body_buffer_size 32K;
}
location ~ ^/(data|docs)/ {
proxy_pass http://localhost:6930;
proxy_set_header X-Forwarded-Ssl on;
include /etc/nginx/proxy_params;
client_max_body_size 16g;
client_body_in_file_only clean;
client_body_buffer_size 32K;
}
location /reconstruction {
proxy_pass http://websocket;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
}
}
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