-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…portas-localhost (#57): implementado http(s) para porta em AP Alpha; mensagem de 502 Bad Gateway substituída por 501 Not Implemented
- Loading branch information
Showing
7 changed files
with
321 additions
and
10 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
201 changes: 201 additions & 0 deletions
201
logbook/aguia-pescadora-alpha/etc/nginx/sites-available/PORTAS-INTERNAS.apa.etica.ai.conf
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,201 @@ | ||
server { | ||
listen 80; | ||
listen [::]:80; | ||
server_name 2000.apa.etica.ai 2000.lb-ap.etica.ai; | ||
|
||
include /etc/nginx/snippets/PORTAS-INTERNAS-server.conf; | ||
|
||
location / { | ||
include /etc/nginx/snippets/PORTAS-INTERNAS-location.conf; | ||
proxy_pass http://127.0.0.1:2000; | ||
} | ||
|
||
listen [::]:443 ssl; # managed by Certbot | ||
listen 443 ssl; # managed by Certbot | ||
ssl_certificate /etc/letsencrypt/live/2000.apa.etica.ai/fullchain.pem; # managed by Certbot | ||
ssl_certificate_key /etc/letsencrypt/live/2000.apa.etica.ai/privkey.pem; # managed by Certbot | ||
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot | ||
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot | ||
|
||
} | ||
server { | ||
listen 80; | ||
listen [::]:80; | ||
server_name 3000.apa.etica.ai 3000.lb-ap.etica.ai; | ||
|
||
include /etc/nginx/snippets/PORTAS-INTERNAS-server.conf; | ||
|
||
location / { | ||
include /etc/nginx/snippets/PORTAS-INTERNAS-location.conf; | ||
proxy_pass http://127.0.0.1:3000; | ||
} | ||
|
||
listen [::]:443 ssl; # managed by Certbot | ||
listen 443 ssl; # managed by Certbot | ||
ssl_certificate /etc/letsencrypt/live/2000.apa.etica.ai/fullchain.pem; # managed by Certbot | ||
ssl_certificate_key /etc/letsencrypt/live/2000.apa.etica.ai/privkey.pem; # managed by Certbot | ||
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot | ||
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot | ||
|
||
} | ||
server { | ||
listen 80; | ||
listen [::]:80; | ||
server_name 4000.apa.etica.ai 4000.lb-ap.etica.ai; | ||
|
||
include /etc/nginx/snippets/PORTAS-INTERNAS-server.conf; | ||
|
||
location / { | ||
include /etc/nginx/snippets/PORTAS-INTERNAS-location.conf; | ||
proxy_pass http://127.0.0.1:4000; | ||
} | ||
|
||
listen [::]:443 ssl; # managed by Certbot | ||
listen 443 ssl; # managed by Certbot | ||
ssl_certificate /etc/letsencrypt/live/2000.apa.etica.ai/fullchain.pem; # managed by Certbot | ||
ssl_certificate_key /etc/letsencrypt/live/2000.apa.etica.ai/privkey.pem; # managed by Certbot | ||
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot | ||
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot | ||
|
||
} | ||
server { | ||
listen 80; | ||
listen [::]:80; | ||
server_name 5000.apa.etica.ai 5000.lb-ap.etica.ai; | ||
|
||
include /etc/nginx/snippets/PORTAS-INTERNAS-server.conf; | ||
|
||
location / { | ||
include /etc/nginx/snippets/PORTAS-INTERNAS-location.conf; | ||
proxy_pass http://127.0.0.1:5000; | ||
} | ||
|
||
listen [::]:443 ssl; # managed by Certbot | ||
listen 443 ssl; # managed by Certbot | ||
ssl_certificate /etc/letsencrypt/live/2000.apa.etica.ai/fullchain.pem; # managed by Certbot | ||
ssl_certificate_key /etc/letsencrypt/live/2000.apa.etica.ai/privkey.pem; # managed by Certbot | ||
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot | ||
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot | ||
|
||
} | ||
server { | ||
listen 80; | ||
listen [::]:80; | ||
server_name 6000.apa.etica.ai 6000.lb-ap.etica.ai; | ||
|
||
include /etc/nginx/snippets/PORTAS-INTERNAS-server.conf; | ||
|
||
location / { | ||
include /etc/nginx/snippets/PORTAS-INTERNAS-location.conf; | ||
proxy_pass http://127.0.0.1:6000; | ||
} | ||
|
||
listen [::]:443 ssl; # managed by Certbot | ||
listen 443 ssl; # managed by Certbot | ||
ssl_certificate /etc/letsencrypt/live/2000.apa.etica.ai/fullchain.pem; # managed by Certbot | ||
ssl_certificate_key /etc/letsencrypt/live/2000.apa.etica.ai/privkey.pem; # managed by Certbot | ||
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot | ||
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot | ||
|
||
} | ||
server { | ||
listen 80; | ||
listen [::]:80; | ||
server_name 7000.apa.etica.ai 7000.lb-ap.etica.ai; | ||
|
||
include /etc/nginx/snippets/PORTAS-INTERNAS-server.conf; | ||
|
||
location / { | ||
include /etc/nginx/snippets/PORTAS-INTERNAS-location.conf; | ||
proxy_pass http://127.0.0.1:7000; | ||
} | ||
|
||
listen [::]:443 ssl; # managed by Certbot | ||
listen 443 ssl; # managed by Certbot | ||
ssl_certificate /etc/letsencrypt/live/2000.apa.etica.ai/fullchain.pem; # managed by Certbot | ||
ssl_certificate_key /etc/letsencrypt/live/2000.apa.etica.ai/privkey.pem; # managed by Certbot | ||
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot | ||
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot | ||
|
||
} | ||
server { | ||
listen 80; | ||
listen [::]:80; | ||
server_name 8000.apa.etica.ai 8000.lb-ap.etica.ai; | ||
|
||
include /etc/nginx/snippets/PORTAS-INTERNAS-server.conf; | ||
|
||
location / { | ||
include /etc/nginx/snippets/PORTAS-INTERNAS-location.conf; | ||
proxy_pass http://127.0.0.1:8000; | ||
} | ||
|
||
listen [::]:443 ssl; # managed by Certbot | ||
listen 443 ssl; # managed by Certbot | ||
ssl_certificate /etc/letsencrypt/live/2000.apa.etica.ai/fullchain.pem; # managed by Certbot | ||
ssl_certificate_key /etc/letsencrypt/live/2000.apa.etica.ai/privkey.pem; # managed by Certbot | ||
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot | ||
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot | ||
|
||
} | ||
server { | ||
listen 80; | ||
listen [::]:80; | ||
server_name 8080.apa.etica.ai 8080.lb-ap.etica.ai; | ||
|
||
include /etc/nginx/snippets/PORTAS-INTERNAS-server.conf; | ||
|
||
location / { | ||
include /etc/nginx/snippets/PORTAS-INTERNAS-location.conf; | ||
proxy_pass http://127.0.0.1:8080; | ||
} | ||
|
||
listen [::]:443 ssl; # managed by Certbot | ||
listen 443 ssl; # managed by Certbot | ||
ssl_certificate /etc/letsencrypt/live/2000.apa.etica.ai/fullchain.pem; # managed by Certbot | ||
ssl_certificate_key /etc/letsencrypt/live/2000.apa.etica.ai/privkey.pem; # managed by Certbot | ||
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot | ||
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot | ||
|
||
} | ||
server { | ||
listen 80; | ||
listen [::]:80; | ||
server_name 8888.apa.etica.ai 8888.lb-ap.etica.ai; | ||
|
||
include /etc/nginx/snippets/PORTAS-INTERNAS-server.conf; | ||
|
||
location / { | ||
include /etc/nginx/snippets/PORTAS-INTERNAS-location.conf; | ||
proxy_pass http://127.0.0.1:8888; | ||
} | ||
|
||
|
||
listen [::]:443 ssl; # managed by Certbot | ||
listen 443 ssl; # managed by Certbot | ||
ssl_certificate /etc/letsencrypt/live/2000.apa.etica.ai/fullchain.pem; # managed by Certbot | ||
ssl_certificate_key /etc/letsencrypt/live/2000.apa.etica.ai/privkey.pem; # managed by Certbot | ||
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot | ||
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot | ||
|
||
} | ||
server { | ||
listen 80; | ||
listen [::]:80; | ||
server_name 9000.apa.etica.ai 9000.lb-ap.etica.ai; | ||
|
||
include /etc/nginx/snippets/PORTAS-INTERNAS-server.conf; | ||
|
||
location / { | ||
include /etc/nginx/snippets/PORTAS-INTERNAS-location.conf; | ||
proxy_pass http://127.0.0.1:9000; | ||
} | ||
|
||
listen [::]:443 ssl; # managed by Certbot | ||
listen 443 ssl; # managed by Certbot | ||
ssl_certificate /etc/letsencrypt/live/2000.apa.etica.ai/fullchain.pem; # managed by Certbot | ||
ssl_certificate_key /etc/letsencrypt/live/2000.apa.etica.ai/privkey.pem; # managed by Certbot | ||
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot | ||
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot | ||
|
||
} |
5 changes: 5 additions & 0 deletions
5
logbook/aguia-pescadora-alpha/etc/nginx/snippets/PORTAS-INTERNAS-location.conf
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,5 @@ | ||
# FILE: /etc/nginx/snippets/PORTAS-INTERNAS-server.conf | ||
# DESCRIPTION: Arquivo importado no escopo de location / de | ||
# /etc/nginx/sites-available/PORTAS-INTERNAS.apa.etica.ai.conf | ||
|
||
proxy_ignore_client_abort on; |
24 changes: 24 additions & 0 deletions
24
logbook/aguia-pescadora-alpha/etc/nginx/snippets/PORTAS-INTERNAS-server.conf
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,24 @@ | ||
# FILE: /etc/nginx/snippets/PORTAS-INTERNAS-server.conf | ||
# DESCRIPTION: Arquivo importado no escopo de server de | ||
# /etc/nginx/sites-available/PORTAS-INTERNAS.apa.etica.ai.conf | ||
|
||
location = /favicon.ico { | ||
access_log off; | ||
log_not_found off; | ||
return 204; | ||
#try_files $uri = 204; | ||
} | ||
|
||
location = /robots.txt { | ||
access_log off; | ||
log_not_found off; | ||
#add_header Content-Type 'text/plain charset=UTF-8' always; | ||
return 200 "#robots.txt padrao (sobrescreve a aplicacao)\nUser-agent: *\nDisallow: /\n"; | ||
} | ||
|
||
error_page 502 =501 /502.html; | ||
location /502.html { | ||
#more_set_headers 'Content-Type: application/json charset=UTF-8'; | ||
add_header 'Content-Type' 'application/json charset=UTF-8' always; | ||
return 501 '{"error": {"status_code": 501,"status": "Não Implementado"}, "Server": "aguia-pescadora-alpha.etica.ai"}'; | ||
} |
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
Oops, something went wrong.