Learn about Centmin Mod LEMP Stack today
Become a Member

Blossom server Haven

Discussion in 'Other Web Apps usage' started by Max, Jan 20, 2026.

  1. Max

    Max Member

    127
    5
    18
    Feb 17, 2018
    Ratings:
    +9
    Local Time:
    12:22 AM
    centminmod nginx proxy does not deliver it as provided by haven. Do you perhaps have any advice for me as to what the problem might be?
    csf on or off
    no change

    https://mhaven.mojobus.cc/5a651a6a99fcd639e9d82f4fed60add396aca3eec19d8542623d2273b9a3df95.jpg
    404 Not found
    https://mhaven.mojobus.cc/5a651a6a99fcd639e9d82f4fed60add396aca3eec19d8542623d2273b9a3df95
    load but no extention .jpg
    curl -o myimage.jpg http://localhost:3355/5a651a6a99fcd639e9d82f4fed60add396aca3eec19d8542623d2273b9a3df95.jpg
    OK




    mhaven.mojobus.cc.ssl.conf
    Code:
    #x# HTTPS-DEFAULT
     server {
       listen   80;
    #x#   listen   [::]:80;
       server_name mhaven.mojobus.cc www.mhaven.mojobus.cc;
       return 302 https://mhaven.mojobus.cc$request_uri;
       root /home/nginx/domains/mhaven.mojobus.cc/public;
       include /usr/local/nginx/conf/staticfiles.conf;
     }
    
    #       
    
    server {
      listen 443 ssl http2;
    
      server_name mhaven.mojobus.cc www.mhaven.mojobus.cc;
    
      include /usr/local/nginx/conf/ssl/mhaven.mojobus.cc/mhaven.mojobus.cc.crt.key.conf;
      include /usr/local/nginx/conf/ssl_include.conf;
    
    # cloudflare authenticated origin pull cert community.centminmod.com/threads/13847/
      #ssl_client_certificate /usr/local/nginx/conf/ssl/cloudflare/mhaven.mojobus.cc/origin.crt;
      #ssl_verify_client on;
    
    
    
      # mozilla recommended
      ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:E>
      ssl_prefer_server_ciphers   on;
      #add_header Alternate-Protocol  443:npn-spdy/3;
      proxy_read_timeout  3600s;
      proxy_send_timeout  3600s;
      proxy_buffering     off;
    
      location / {
      proxy_pass http://localhost:3355;
            proxy_set_header Host $host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_set_header X-Forwarded-Proto $scheme;
            proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection "upgrade";
      include /usr/local/nginx/conf/503include-only.conf;
    
    
    
      }
    
     # include /usr/local/nginx/conf/php.conf;
    
      include /usr/local/nginx/conf/pre-staticfiles-local-mhaven.mojobus.cc.conf;
      include /usr/local/nginx/conf/pre-staticfiles-global.conf;
      include /usr/local/nginx/conf/staticfiles.conf;
      include /usr/local/nginx/conf/drop.conf;
      #include /usr/local/nginx/conf/errorpage.conf;
      include /usr/local/nginx/conf/vts_server.conf;
    }
    
    


    ^G Help ^O Write Out ^W Where Is ^K Cut ^T Execu

    #############
    Haven
    localhost:3355 (outbox and Blossom server) ???
    localhost:3355/private
    localhost:3355/chat
    localhost:3355/inbox

    SET_DEFAULT_MYSQLCHARSET='utf8mb4'
    SELFSIGNEDSSL_ECDSA='y'
    PHPFINFO='y'
    PHP_OVERWRITECONF='n'
    PYTHON_INSTALL_ALTERNATIVES='y'
    MARCH_TARGETNATIVE='n'
    #CF_DNSAPI_GLOBAL='y'
    #CF_Token="czaHxOHy837K"
    #CF_Account_ID="5ac05b7a32f"
    NGINX_ONETWOTHREE_COMPAT='y'
    GENERAL_DEVTOOLSETGCC='y'
    DEVTOOLSETTEN='n'
    DEVTOOLSETELEVEN='n'
    DEVTOOLSETTWELVE='y'
    SELFSIGNEDSSL_ECDSA='y'
    PHP_PGO_ALWAYS='y'
    PHP_PGO='y'
    PHPFINFO='y'
    PHP_OVERWRITECONF='n'
    PYTHON_INSTALL_ALTERNATIVES='y'
    DMOTD_PHPCHECK='y'
    NGINX_GEOIPTWOLITE='y'
    NGXDYNAMIC_GEOIPTWOLITE='y'
    NGINX_HPACK='y'
    NGINX_DYNAMICTLS='y'
    NGINX_PCRE_TWO='y'
    OPENSSL_VERSION='3.1.4'
    OPENSSL_VERSIONFALLBACK='3.1.4'
    OPENSSL_VERSION_OLDOVERRIDE='3.1.4'
    NGINX_NJS='y'
    NGXDYNAMIC_NJS='y'
    NGXDYNAMIC_BROTLI='y'
    NGINX_LIBBROTLI='y'
    NGINX_VIDEO='y'
    #ENABLE_MARIADBTENFOURUPGRADE='y'
    #ENABLE_MARIADBTENFIVEUPGRADE='y'
    ENABLE_MARIADBTENSIXUPGRADE='y'
    LETSENCRYPT_DETECT='y'
    #ACME_DEFAULT_CA='zerossl'
    MARCH_TARGETNATIVE='n'
    AUTODETECPHP_OVERRIDE='y'

     
  2. eva2000

    eva2000 Administrator Staff Member

    58,893
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    9:22 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    Try commenting out with hash as this tells nginx to serve static files
    Code (Text):
    #include /usr/local/nginx/conf/staticfiles.conf

    then restart nginx
    Code (Text):
    systemctl restart nginx
    

    or centmin mod command shortcut
    Code (Text):
    ngxrestart
     
  3. Max

    Max Member

    127
    5
    18
    Feb 17, 2018
    Ratings:
    +9
    Local Time:
    12:22 AM
    Works

    I tried to create a system service. It seems to be unable to find the .env file in the working directory.

    Code:
      GNU nano 5.6.1                                                            /etc/systemd/system/haven.service                                                                       
    [Unit]
    Description=Haven Relay.mojobus.co
    After=network.target
    
    [Service]
    ExecStart=/home/nginx/domains/relay.mojobus.co/public/haven #Edit path to point to where you installed Haven
    WorkingDirectory=/home/nginx/domains/relay.mojobus.co/public/ #Edit path to point to where you installed Haven
    MemoryMax=1000M  # Example, Limit memory usage to 1000 MB | Edit this to fit your machine
    Restart=always
    
    [Install]
    WantedBy=multi-user.target
    
    Code:
    systemctl status haven
    × haven.service - Haven Relay.mojobus.co
         Loaded: loaded (/etc/systemd/system/haven.service; disabled; preset: disabled)
         Active: failed (Result: exit-code) since Wed 2026-01-21 12:52:35 GMT; 5h 36min ago
       Duration: 2ms
        Process: 169113 ExecStart=/home/nginx/domains/relay.mojobus.co/public/haven #Edit path to point to where you installed Haven (code=exited, status=200/CHDIR)
       Main PID: 169113 (code=exited, status=200/CHDIR)
            CPU: 1ms
    
    Jan 21 12:52:35 host.mojomail.me systemd[1]: haven.service: Scheduled restart job, restart counter is at 5.
    Jan 21 12:52:35 host.mojomail.me systemd[1]: Stopped Haven Relay.mojobus.co.
    Jan 21 12:52:35 host.mojomail.me systemd[1]: haven.service: Start request repeated too quickly.
    Jan 21 12:52:35 host.mojomail.me systemd[1]: haven.service: Failed with result 'exit-code'.
    Jan 21 12:52:35 host.mojomail.me systemd[1]: Failed to start Haven Relay.mojobus.co.