Public Repository

Last pushed: 7 months ago
Short Description
Short description is empty for this repo.
Full Description

Nginx conf example

# HTTP - redirect all requests to HTTPS
server {
    listen 80;
    listen [::]:80 default_server ipv6only=on;
    return 301 https://$host$request_uri;
#root /usr/share/nginx/html;
    server_name server_fqdn;
}

# HTTPS - serve HTML from /usr/share/nginx/html, proxy requests to /parse/
# through to Parse Server
server {
        listen 443;
        server_name server_fqdn;

        root /usr/share/nginx/html;
        index index.html index.htm;

        ssl on;
        # Use certificate and key provided by Let's Encrypt:
        ssl_certificate /etc/letsencrypt/live/server_fqdn/fullchain.pem;
        ssl_certificate_key /etc/letsencrypt/live/server_fqdn/privkey.pem;
        ssl_session_timeout 5m;
        ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
        ssl_prefer_server_ciphers on;
        ssl_ciphers 'EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH';

        # Pass requests for /parse/ to Parse Server instance at localhost:1337
           location /app_name/ {
                proxy_set_header X-Real-IP $remote_addr;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_set_header X-NginX-Proxy true;
                proxy_pass http://localhost:1337/parse/;
                proxy_ssl_session_reuse off;
                proxy_set_header Host $http_host;
                proxy_redirect off;
        }

        location /board/ {
               proxy_pass http://localhost:4040/board/;
                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 https;
        }

        location / {
                try_files $uri $uri/ =404;
        }
}

parse dashboard config example

{
  "apps": [
    {
      "serverURL": "https://server_fqdn/app_name",
      "appId": "app_is",
      "masterKey": "master_key",
      "appName": "app_name"
    }
  ],
  "iconsFolder": "icons",
  "users": [
    {
      "user":"user1",
      "pass":"pass1"
    },
    {
      "user":"undead",
      "pass":"testpasswd"
    }
  ]
}
Docker Pull Command
Owner
undead

Comments (0)