Coder Social home page Coder Social logo

cgvarela / actor-server Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hekailiang/actor-server

0.0 3.0 0.0 10.2 MB

This is an outdated server, for new one follow the link

Home Page: https://github.com/actorapp/actor-platform

License: MIT License

Scala 93.63% Java 1.41% Protocol Buffer 4.92% Shell 0.04%

actor-server's Introduction

secret-backend

Backend for secret app

Building

sbt dist

Running dist

  • Create APNS certificate or use sample certificate in apns folder
  • Set its location in application.conf
  • Set sql settings in application.conf
  • Remove -agentlib:TakipiAgent from bin/start if you don't have takipi agent installed
  • bin/start

Java Keystore

openssl pkcs12 -export -in ssl-unified.crt -inkey ssl.key -out server.p12 -name actor.im -CAfile ca.crt -caname root
keytool -importkeystore -destkeystore keystore.jks -srckeystore server.p12 -srcstoretype pkcs12 -alias actor.im

# StartSSL
wget http://www.startssl.com/certs/ca.crt
wget http://www.startssl.com/certs/sub.class1.server.ca.crt
keytool -import -alias startcom.ca -file ca.crt -trustcacerts -keystore keystore.jks
keytool -import -alias startcom.ca.sub -file sub.class1.server.ca.crt -trustcacerts -keystore keystore.jks

Deploy

./deploy.sh

Example application for H2 embedded database

actor-server {
  actor-system-name = "actor-server"

  sql {
    driverClassName = "org.h2.Driver"
    url = "jdbc:h2:/tmp/actor.h2"
    username = "sa"
    password = ""
    user = ${actor-server.sql.username}
    pass = ${actor-server.sql.password}
  }

  jdbc-connection = ${actor-server.sql}

  jdbc-journal {
    class = "akka.persistence.jdbc.journal.H2SyncWriteJournal"
  }

  jdbc-snapshot-store {
    class = "akka.persistence.jdbc.snapshot.H2SyncSnapshotStore"
  }
}

actor-server's People

Contributors

ex3ndr avatar lpaul7 avatar onsails avatar timothyklim avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.