Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Documentation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Harbor Registry
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
simcaq
Documentation
Commits
8c726733
Commit
8c726733
authored
4 years ago
by
Miguel Angelo Salerno
Browse files
Options
Downloads
Patches
Plain Diff
add nginx files
parent
baa30c98
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
nginx/labdados
+57
-0
57 additions, 0 deletions
nginx/labdados
nginx/simcaq
+85
-0
85 additions, 0 deletions
nginx/simcaq
with
142 additions
and
0 deletions
nginx/labdados
0 → 100644
+
57
−
0
View file @
8c726733
upstream lde_api {
server localhost:3000 fail_timeout=0;
}
upstream mapfor {
server localhost:5000 fail_timeout=0;
}
upstream labdados {
server localhost:5050 fail_timeout=0;
}
server {
listen 80;
server_name dadoseducacionaishom.c3sl.ufpr.br www.dadoseducacionaishom.c3sl.ufpr.br;
return 301 https://dadoseducacionaishom.c3sl.ufpr.br$request_uri;
}
server {
listen 443 ssl;
server_name dadoseducacionaishom.c3sl.ufpr.br www.dadoseducacionaishom.c3sl.ufpr.br;
ssl_certificate /etc/ssl/certs/c3sl.pem;
ssl_certificate_key /etc/ssl/private/c3sl.pem;
# descomentar esses para rodar local (sem docker)
# root /home/simcaq/labdados-ui;
# index index.html index.htm;
# comentar todo esse location para rodar local (sem docker)
location / {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_cache_bypass $http_upgrade;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://labdados/;
}
location /api/ {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_cache_bypass $http_upgrade;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://lde_api;
}
location /mapfor/ {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_cache_bypass $http_upgrade;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://mapfor/;
}
}
This diff is collapsed.
Click to expand it.
nginx/simcaq
0 → 100644
+
85
−
0
View file @
8c726733
upstream simcaq {
server localhost:5060 fail_timeout=0;
}
upstream node_server {
server localhost:3000 fail_timeout=0;
}
# upstream node_server2 {
# server localhost:3001 fail_timeout=0;
# }
# upstream cdn_server {
# server simcaqdb3.c3sl.ufpr.br:7000 fail_timeout=0;
# }
server {
listen 80;
server_name simcaqhom.c3sl.ufpr.br www.simcaqhom.c3sl.ufpr.br;
return 301 https://simcaqhom.c3sl.ufpr.br$request_uri;
# descomentar esses para rodar local (sem docker)
# root /home/simcaq/front-end/dist
# index index.html index.htm;
}
server {
listen 443 ssl;
server_name simcaqhom.c3sl.ufpr.br www.simcaqhom.c3sl.ufpr.br;
ssl_certificate /etc/ssl/certs/c3sl.pem;
ssl_certificate_key /etc/ssl/private/c3sl.pem;
# descomentar esses para rodar local (sem docker)
# root /home/simcaq/front-end/dist;
# index index.html index.htm;
# comentar todo esse location para rodar local (sem docker)
location / {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_cache_bypass $http_upgrade;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://simcaq/;
}
location /api/ {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
# proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://node_server;
proxy_read_timeout 600s;
}
# location /api-test/ {
# proxy_http_version 1.1;
# proxy_set_header Upgrade $http_upgrade;
# proxy_set_header Connection 'upgrade';
# #proxy_set_header Host $host;
# proxy_cache_bypass $http_upgrade;
# proxy_set_header X-Real-IP $remote_addr;
# proxy_pass http://node_server2;
# proxy_read_timeout 600s;
# }
# location /doc {
# alias /home/simcaq/api-doc/build/;
# }
# location /download/ {
# proxy_http_version 1.1;
# proxy_set_header Upgrade $http_upgrade;
# proxy_set_header Connection 'upgrade';
# proxy_set_header Host $host;
# proxy_cache_bypass $http_upgrade;
# proxy_set_header Host $host;
# proxy_set_header X-Real-IP $remote_addr;
# proxy_pass http://cdn_server/api/v1/file/download/;
# }
}
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