fixing restheart reverse proxy bug and final configs for migration

legacy_v2
mwinter 2 years ago
parent 8998fac792
commit aea048a22a

@ -50,7 +50,7 @@ services:
portfolio: portfolio:
# TODO: This will eventually be rewritten with something like VUE # TODO: This will eventually be rewritten with something like VUE
container_name: portfolio container_name: portfolio
build: ./src/portfolio build: ./portfolio
# To just server running the following command # To just server running the following command
#command: bash -c "npm run serve" #command: bash -c "npm run serve"
# To reinstall the packages run the following command instead # To reinstall the packages run the following command instead
@ -169,7 +169,7 @@ services:
#/fileRealmAuthenticator/users[userid='admin']/password->'${PASSWORD}'; #/fileRealmAuthenticator/users[userid='admin']/password->'${PASSWORD}';
- VIRTUAL_HOST=${DOMAIN},*.${DOMAIN},restheart.${DOMAIN},api.${DOMAIN} - VIRTUAL_HOST=${DOMAIN},*.${DOMAIN},restheart.${DOMAIN},api.${DOMAIN}
- VIRTUAL_PATH=/api/ - VIRTUAL_PATH=/api/
- VIRTUAL_DEST=/ - VIRTUAL_DEST=/api/
- VIRTUAL_PORT=8080 - VIRTUAL_PORT=8080
depends_on: depends_on:
mongo: mongo:
@ -242,8 +242,9 @@ services:
container_name: nextcloud container_name: nextcloud
restart: always restart: always
volumes: volumes:
- ./nextcloud/data:/var/www/html/data #- ./nextcloud/data:/var/www/html/data
- nextcloud:/var/www/html #- nextcloud:/var/www/html
- ./nextcloud/html:/var/www/html
environment: environment:
- MYSQL_DATABASE=nextcloud - MYSQL_DATABASE=nextcloud
- MYSQL_USER=${USER} - MYSQL_USER=${USER}
@ -252,6 +253,7 @@ services:
- NEXTCLOUD_ADMIN_USER=${USER} - NEXTCLOUD_ADMIN_USER=${USER}
- NEXTCLOUD_ADMIN_PASSWORD=${PASSWORD} - NEXTCLOUD_ADMIN_PASSWORD=${PASSWORD}
- NEXTCLOUD_TRUSTED_DOMAINS=${DOMAIN} *.${DOMAIN} cloud.${DOMAIN} nextcloud.${DOMAIN} #localdev.${DOMAIN} - NEXTCLOUD_TRUSTED_DOMAINS=${DOMAIN} *.${DOMAIN} cloud.${DOMAIN} nextcloud.${DOMAIN} #localdev.${DOMAIN}
- NEXTCLOUD_INIT_LOCK=true
#- APACHE_DISABLE_REWRITE_IP=1 #- APACHE_DISABLE_REWRITE_IP=1
#- TRUSTED_PROXIES=nginx-proxy #- TRUSTED_PROXIES=nginx-proxy
#- OVERWRITEHOST=${DOMAIN}:8888 #- OVERWRITEHOST=${DOMAIN}:8888
@ -273,9 +275,6 @@ services:
#redis: #redis:
ports: ports:
- 8888:80 - 8888:80
- 8443:443
#expose:
# - 8888
mysql-nextcloud: mysql-nextcloud:
image: mariadb:10 image: mariadb:10
@ -296,6 +295,6 @@ services:
volumes: volumes:
nginx: nginx:
nextcloud: #nextcloud:
acme: acme:
portfolio: portfolio:

@ -1,12 +1,2 @@
## Start of configuration add by letsencrypt container
location ^~ /.well-known/acme-challenge/ {
auth_basic off;
auth_request off;
allow all;
root /usr/share/nginx/html;
try_files $uri =404;
break;
}
## End of configuration add by letsencrypt container
include /etc/nginx/bots.d/ddos.conf; include /etc/nginx/bots.d/ddos.conf;
include /etc/nginx/bots.d/blockbots.conf; include /etc/nginx/bots.d/blockbots.conf;

@ -0,0 +1,12 @@
# Ignore everything
*
# Allow files and directories
!/src
# Ignore unnecessary files inside allowed directories
# This should go after the allowed directories
**/*~
**/*.log
**/.DS_Store
**/Thumbs.db

@ -89,10 +89,7 @@ $("img").load(function() {
}); });
// Functions ============================================================= // Functions =============================================================
//BASE_URL='https://restheart.unboundedpress.org'; BASE_URL = window.location.origin + '/api'
//BASE_URL='https://dev2.unboundedpress.org';
//http://127.0.0.1:8080/api/
BASE_URL='http://127.0.0.1:8080/api';
function resetDivHeights(){ function resetDivHeights(){

@ -15,7 +15,7 @@ block content
li li
a#aboutbutton(class='scroll-to-div', href='#about', data-target='about') about a#aboutbutton(class='scroll-to-div', href='#about', data-target='about') about
li li
a(href='https://gitea.unboundedpress.org/', target='_blank') code a(href='/code', target='_blank') code
div#gallery.header-section div#gallery.header-section
div.header-inner div.header-inner

Loading…
Cancel
Save