Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
py-3d-face-reconstruction
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Richard Torenvliet
py-3d-face-reconstruction
Commits
8f6cde84
Commit
8f6cde84
authored
8 years ago
by
Richard Torenvliet
Browse files
Options
Downloads
Patches
Plain Diff
Add example file for nginx config for remote server
parent
12d33735
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/nginx_config
+55
-0
55 additions, 0 deletions
scripts/nginx_config
with
55 additions
and
0 deletions
scripts/nginx_config
0 → 100644
+
55
−
0
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;
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment