mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
clean nginx config
This commit is contained in:
parent
6ad8bc79ab
commit
f3e4bc805a
@ -1,25 +1,20 @@
|
|||||||
# HTTP server
|
# HTTP server
|
||||||
|
#TODO
|
||||||
server {
|
server {
|
||||||
if ($host = stage1.gradido.net) {
|
if ($host = stage1.gradido.net) {
|
||||||
return 301 https://$host$request_uri;
|
return 301 https://$host$request_uri;
|
||||||
} # managed by Certbot
|
} # managed by Certbot
|
||||||
|
|
||||||
|
|
||||||
server_name stage1.gradido.net;
|
server_name stage1.gradido.net;
|
||||||
listen 80;
|
listen 80;
|
||||||
listen [::]:80;
|
listen [::]:80;
|
||||||
return 404; # managed by Certbot
|
return 404; # managed by Certbot
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# HTTPS Server
|
# HTTPS Server
|
||||||
server {
|
server {
|
||||||
# TODO correct server name stage1.gradido.net
|
# TODO correct server name stage1.gradido.net
|
||||||
server_name stage1.gradido.net;
|
server_name stage1.gradido.net;
|
||||||
#server_name 0.0.0.0;
|
|
||||||
#listen 80;
|
|
||||||
#listen [::]:80;
|
|
||||||
|
|
||||||
# TODO
|
# TODO
|
||||||
listen [::]:443 ssl ipv6only=on; # managed by Certbot
|
listen [::]:443 ssl ipv6only=on; # managed by Certbot
|
||||||
@ -31,10 +26,7 @@ server {
|
|||||||
|
|
||||||
#include /etc/nginx/common/protect.conf;
|
#include /etc/nginx/common/protect.conf;
|
||||||
#include /etc/nginx/common/protect_add_header.conf;
|
#include /etc/nginx/common/protect_add_header.conf;
|
||||||
#include /etc/nginx/common/ssl.conf;
|
#include /etc/nginx/common/ssl.conf;
|
||||||
|
|
||||||
#root /var/www/html/gradido/community_server/webroot;
|
|
||||||
#index index.php;
|
|
||||||
|
|
||||||
#gzip_static on;
|
#gzip_static on;
|
||||||
|
|
||||||
@ -78,26 +70,6 @@ server {
|
|||||||
proxy_redirect off;
|
proxy_redirect off;
|
||||||
}
|
}
|
||||||
|
|
||||||
#location ~ \.php$ {
|
|
||||||
# fastcgi_pass community-server:9000;
|
|
||||||
# fastcgi_index index.php;
|
|
||||||
# fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
||||||
# # fastcgi_param PHP_VALUE "error_log=/var/www/myapp/logs/php_errors.log";
|
|
||||||
# fastcgi_buffers 16 16k;
|
|
||||||
# fastcgi_buffer_size 32k;
|
|
||||||
# include fastcgi_params;
|
|
||||||
#}
|
|
||||||
|
|
||||||
|
|
||||||
#location / {
|
|
||||||
# try_files $uri $uri/ /index.php?$args;
|
|
||||||
#}
|
|
||||||
|
|
||||||
#location ~ \.php$ {
|
|
||||||
# include snippets/fastcgi-php.conf;
|
|
||||||
# fastcgi_pass unix:/run/php/php7.4-fpm.sock;
|
|
||||||
#}
|
|
||||||
|
|
||||||
#location ~ /\.ht {
|
#location ~ /\.ht {
|
||||||
# deny all;
|
# deny all;
|
||||||
# }
|
# }
|
||||||
@ -112,37 +84,5 @@ server {
|
|||||||
# try_files $uri $uri/ /index.html = 404;
|
# try_files $uri $uri/ /index.html = 404;
|
||||||
#}
|
#}
|
||||||
|
|
||||||
#location /account {
|
|
||||||
# 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_set_header X-Forwarded-For $remote_addr;
|
|
||||||
# proxy_set_header Host $host;
|
|
||||||
# rewrite /account/(.*) /$1 break;
|
|
||||||
#
|
|
||||||
# proxy_pass http://127.0.0.1:1200;
|
|
||||||
# proxy_redirect off;
|
|
||||||
#}
|
|
||||||
|
|
||||||
#location /login_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_set_header X-Forwarded-For $remote_addr;
|
|
||||||
# proxy_set_header Host $host;
|
|
||||||
# rewrite /login_api/(.*) /$1 break;
|
|
||||||
#
|
|
||||||
# proxy_pass http://127.0.0.1:1201;
|
|
||||||
# proxy_redirect off;
|
|
||||||
#}
|
|
||||||
|
|
||||||
#location / {
|
|
||||||
# try_files $uri $uri/ /index.php?$args;
|
|
||||||
#}
|
|
||||||
|
|
||||||
#access_log /var/log/nginx/access.log main;
|
#access_log /var/log/nginx/access.log main;
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user