mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-03-31 17:15:38 +00:00
Updated Nginx (markdown)
parent
4ef1b7b758
commit
0e8a85a2f5
1 changed files with 10 additions and 7 deletions
17
Nginx.md
17
Nginx.md
|
|
@ -29,8 +29,9 @@ server {
|
|||
|
||||
listen [::]:80;
|
||||
|
||||
allow 0200::/7;
|
||||
deny all;
|
||||
# Yggdrasil-only connections
|
||||
# allow 0200::/7;
|
||||
# deny all;
|
||||
|
||||
root /var/www/YGGverse/YGGtracker/public;
|
||||
|
||||
|
|
@ -45,8 +46,6 @@ server {
|
|||
|
||||
location ~ ^/index\.php(/|$) {
|
||||
|
||||
fastcgi_param APP_ENV prod;
|
||||
|
||||
include snippets/fastcgi-php.conf;
|
||||
|
||||
fastcgi_pass unix:/run/php/php8.1-fpm.sock;
|
||||
|
|
@ -56,6 +55,10 @@ server {
|
|||
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
|
||||
fastcgi_param DOCUMENT_ROOT $realpath_root;
|
||||
|
||||
# Environment variables
|
||||
# bin/console cache:clear
|
||||
fastcgi_param APP_ENV prod;
|
||||
|
||||
internal;
|
||||
}
|
||||
|
||||
|
|
@ -92,8 +95,8 @@ server {
|
|||
listen [::]:80 default;
|
||||
|
||||
# Yggdrasil-only connections
|
||||
allow 0200::/7;
|
||||
deny all;
|
||||
# allow 0200::/7;
|
||||
# deny all;
|
||||
|
||||
root /var/www/html;
|
||||
|
||||
|
|
@ -122,6 +125,6 @@ server {
|
|||
|
||||
# Environment variables
|
||||
# bin/console cache:clear
|
||||
# fastcgi_param APP_ENV prod;
|
||||
fastcgi_param APP_ENV prod;
|
||||
}
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue