rearrange services

This commit is contained in:
root
2020-12-25 21:36:11 +00:00
parent 14f641ec08
commit f62b612360
91 changed files with 43 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
server {
listen 80;
listen [::]:80;
server_name localhost;
#charset koi8-r;
#access_log /var/log/nginx/host.access.log main;
location / {
# root /usr/share/nginx/html;
# index index.html index.htm;
proxy_ssl_server_name on;
proxy_ssl_verify off;
proxy_pass http://fetsitedev:5001;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
location /etherpad {
rewrite /etherpad/(.*) /$1 break;
rewrite ^/etherpad$ /etherpad/ permanent;
proxy_pass http://etherpad:9001;
proxy_redirect / /etherpad/;
proxy_set_header Host $host;
proxy_buffering off;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}

View File

@@ -0,0 +1,3 @@
#!/bin/sh
solr-precreate core /opt/solr/server/solr/configsets/fetconfig
solr-precreate coreprotocol /opt/solr/server/solr/configsets/fetconfig