-
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
- Loading branch information
Showing
7 changed files
with
2,686 additions
and
4 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
38 changes: 38 additions & 0 deletions
38
logbook/aguia-pescadora-bravo/etc/nginx/fititnt.apb.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,38 @@ | ||
# FILE: /etc/nginx/sites-available/fititnt.apb.etica.ai.conf | ||
|
||
server { | ||
root /home2/fititnt/web/public_html; | ||
|
||
index index.html; | ||
|
||
server_name fititnt.apb.etica.ai fititnt.lb-ap.etica.ai; | ||
|
||
location / { | ||
try_files $uri $uri/ =404; | ||
} | ||
|
||
|
||
listen [::]:443 ssl; # managed by Certbot | ||
listen 443 ssl; # managed by Certbot | ||
ssl_certificate /etc/letsencrypt/live/fititnt.apb.etica.ai/fullchain.pem; # managed by Certbot | ||
ssl_certificate_key /etc/letsencrypt/live/fititnt.apb.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 { | ||
if ($host = fititnt.apb.etica.ai) { | ||
return 301 https://$host$request_uri; | ||
} # managed by Certbot | ||
|
||
|
||
|
||
listen 80; | ||
listen [::]:80; | ||
|
||
server_name fititnt.apb.etica.ai fititnt.lb-ap.etica.ai; | ||
return 404; # managed by Certbot | ||
|
||
|
||
} |
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
60 changes: 60 additions & 0 deletions
60
logbook/aguia-pescadora-bravo/etc/nginx/sites-available/fititnt.apb.etica.ai.conf--antigo
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,60 @@ | ||
# FILE: /etc/nginx/sites-available/fititnt.apb.etica.ai.conf | ||
|
||
server { | ||
root /home2/fititnt/web/public_html; | ||
|
||
index index.html; | ||
|
||
server_name fititnt.apb.etica.ai fititnt.lb-ap.etica.ai; | ||
|
||
### OP��ES PARA DEBUG EXCLUSIVAMENTE NESTE DOMINIO, INICIO | ||
# Autoindex n�o � algo recomendado. Por�m fititnt est� debugando | ||
autoindex on; | ||
# Desliguei isso no final. Este modo de debug � MUITO detalhado. Pode lotar o disco! | ||
error_log /var/log/nginx/error-fititnt.log debug; | ||
|
||
# Use isto por terminal: | ||
# tail -f /var/log/nginx/error-fititnt.log | ||
### OP��ES PARA DEBUG EXCLUSIVAMENTE NESTE DOMINIO, INICIO | ||
|
||
location / { | ||
try_files $uri $uri/ =404; | ||
} | ||
|
||
location ^~ /php { | ||
root /home2/fititnt/web/php; | ||
|
||
index index.php; | ||
try_files $uri $uri/ index.php; | ||
|
||
location ~ \.php$ { | ||
include snippets/fastcgi-php.conf; | ||
# fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock; | ||
} | ||
} | ||
|
||
listen [::]:443 ssl; # managed by Certbot | ||
listen 443 ssl; # managed by Certbot | ||
ssl_certificate /etc/letsencrypt/live/fititnt.apb.etica.ai/fullchain.pem; # managed by Certbot | ||
ssl_certificate_key /etc/letsencrypt/live/fititnt.apb.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 { | ||
if ($host = fititnt.apb.etica.ai) { | ||
return 301 https://$host$request_uri; | ||
} # managed by Certbot | ||
|
||
|
||
|
||
listen 80; | ||
listen [::]:80; | ||
|
||
server_name fititnt.apb.etica.ai fititnt.lb-ap.etica.ai; | ||
return 404; # managed by Certbot | ||
|
||
|
||
} |
Oops, something went wrong.