Good morning!
I continue on my mission to make DSpace work perfectly on my Windows 10 server
With the current settings, I can access DSpace on the server via https://fevasf-repositorio.ddns.net. I can also access it from outside the local network. However, I am unable to access it from other computers on the local network, under the same gateway as the server.
I can only access it on the local network when I add the entry 192.168.100.199 fevasf-repositorio.ddns.net to the hosts files on the computers in the LAN. This is not a suitable solution as students will be accessing it via WiFi using the same network as the computer and won't be able to connect.
I can access using <IP-Server>:4000 on local network machines, but it redirects to error 500 after some seconds.
I am using DSpace 7 with Nginx, Tomcat, and Windows 10.
My Nginx configuration is as follows:
server {
listen 80;
server_name fevasf-repositorio.ddns.net;
rewrite ^ https://fevasf-repositorio.ddns.net permanent;
}
server {
listen 443 ssl;
server_name fevasf-repositorio.ddns.net;
root "C:/Program Files/Apache Software Foundation/Tomcat 9.0/webapps";
ssl_certificate C:/nginx-1.25.3/certs/fullchain.pem;
ssl_certificate_key C:/nginx-1.25.3/certs/privkey.pem;
location /server {
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-Host $host;
proxy_pass http://localhost:8080/server;
}
location / {
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-Host $host;
proxy_pass http://localhost:4000;
}
}
My Windows hosts file contains:
192.168.100.199 fevasf-repositorio.ddns.net
My DSpace configuration is:
ui:
ssl: false
host: fevasf-repositorio.ddns.net
port: 4000
nameSpace: /
rateLimiter:
windowMs: 60000 # 1 minute
max: 500 # limit each IP to 500 requests per windowMs
useProxies: true
rest:
ssl: true
host: fevasf-repositorio.ddns.net
port: 443
nameSpace: /server
My DSpace configuration is:
ui:
ssl: false
host: localhost
port: 4000
nameSpace: /
rateLimiter:
windowMs: 60000 # 1 minute
max: 500 # limit each IP to 500 requests per windowMs
useProxies: true
rest:
ssl: true
host: fevasf-repositorio.ddns.net
port: 443
nameSpace: /server
Is there any missing configuration? Please help me troubleshoot this issue.
Good evening,
Certainly, after adding the local DNS service "Unbound" and configuring it for my local network, everything is now working smoothly.
https://fevasf-repositorio.ddns.net
Many thanks for your assistance. Wishing you a fantastic New Year.