B4J Library [ABMaterial] Framework for WebApps

Discussion in 'B4J Libraries & Classes' started by alwaysbusy, Nov 5, 2015.

  1. alwaysbusy

    alwaysbusy Expert Licensed User

    @MbedAndroid Please ask questions in a new topic using '[ABMaterial]Your question' in the subject

    This would mean that the class 'ABMCacheControl' (exactly that name) is missing. If you do have it in your project, we'll continue the conversation in the new topic.
     
    joulongleu likes this.
  2. joulongleu

    joulongleu Active Member

    Thank you for your help, BJ4 6.0 & Abmaterial 4 above, the perfect combination
     
    alwaysbusy likes this.
  3. MbedAndroid

    MbedAndroid Active Member Licensed User

    joulongleu likes this.
  4. inakigarm

    inakigarm Well-Known Member Licensed User

    Is there any problem with alwaysbusy.no-ip.org/feedback ? (can't connect)
     
    joulongleu likes this.
  5. MichalK73

    MichalK73 Active Member Licensed User

  6. alwaysbusy

    alwaysbusy Expert Licensed User

    inakigarm and joulongleu like this.
  7. alwaysbusy

    alwaysbusy Expert Licensed User

    MichalK73 and joulongleu like this.
  8. inakigarm

    inakigarm Well-Known Member Licensed User

    joulongleu likes this.
  9. alwaysbusy

    alwaysbusy Expert Licensed User

    Done! Thanks for letting me know. Complete forgot it was mentioned there too.
     
    joulongleu likes this.
  10. mindful

    mindful Active Member Licensed User

    @alwaysbusy you need to change it in next version changes txt files. In 4.03 it's the old url.
     
    joulongleu and alwaysbusy like this.
  11. ShaneG30

    ShaneG30 Well-Known Member Licensed User

    @alwaysbusy - Could you post your NGINX conf file for the feedback app? I'm kinda a noob at creating NGINX sites so something more complex like a ABMaterial proxy is beyond me.

    Thanks!
     
    joulongleu likes this.
  12. alwaysbusy

    alwaysbusy Expert Licensed User

    I'm not using NGINX but HAProxy. I'll upload that config when I'm at home.
     
    joulongleu and ShaneG30 like this.
  13. alwaysbusy

    alwaysbusy Expert Licensed User

    Here it is (I'm not a specialist either):

    Code:
    global
      
    log /dev/log local0
      
    log /dev/log local1 notice
      chroot /var/lib/haproxy
      stats 
    socket /run/haproxy/admin.sock mode 660 level admin
      stats timeout 30s
      user haproxy
      group haproxy
      daemon
      debug

     defaults
      
    log global
      mode tcp
      option tcplog
      option dontlognull
      timeout connect 15s
      timeout client 15s
      timeout 
    server 15s
    frontend localhost80
      bind *:
    80
      mode http
      acl host_feedback hdr(host) -i feedback.abmaterial.com
      acl is_root 
    path -i /
      http-request set-
    path /feedback if is_root
      redirect scheme https code 
    301 if !{ ssl_fc } host_feedback
      
    frontend localhost443
      bind *:443
      option tcplog
      mode tcp

      acl tls req.ssl_hello_type 1

      tcp-request inspect-delay 5s
      tcp-request content accept if tls

      acl host_feedback req.ssl_sni -i feedback.abmaterial.com
      use_backend feedback if host_feedback

     backend feedback
      server feedback1 192.168.xxx.xxx:xxxxx check

     listen stats
      bind :9000  
      mode http
      log global
      stats enable
      stats hide-version
      stats refresh 30s
      stats show-node
      stats uri /haproxy?stats
      stats auth LOGIN:PASSWORD
      stats admin if TRUE

    # these are the error pages returned by HAProxy when an error occurs
    #  customize as needed
      errorfile 400 /etc/haproxy/errors/400.http
      errorfile 403 /etc/haproxy/errors/403.http
      errorfile 408 /etc/haproxy/errors/408.http
      errorfile 500 /etc/haproxy/errors/500.http
      errorfile 502 /etc/haproxy/errors/502.http
      errorfile 503 /etc/haproxy/errors/503.http
      errorfile 504 /etc/haproxy/errors/504.http
     
    Last edited: May 29, 2019
  14. alwaysbusy

    alwaysbusy Expert Licensed User

  15. Mirko Melegari

    Mirko Melegari Member Licensed User

  16. alwaysbusy

    alwaysbusy Expert Licensed User

    Please start a new question, using [ABMaterial] in the subject title. Thank you!

    Some checks:

    1. So you did do the following in ABMApplication

    Code:
    Private InitialPage As String = "YourStartPage/"  '<-------- First page to load, case sensitive
    In initialize:

    Code:
    ABMShared.AppName = "prova" '<-------- your app name, case sensitive
    2. your .jar is running
    3. you have the full www folder (with js,css,font)
    4. you have the .needs file next to your jar
     
    joulongleu and Peter Simpson like this.
  17. Blueforcer

    Blueforcer Active Member Licensed User

    Hey. i try to study this awesome Work.
    I started the Demo app but every code Section ist black?
    It seems that the Syntax highlighting doesnt work. Black font color and black background.
    Can someone help me?
     

    Attached Files:

    joulongleu likes this.
  18. billyrudi

    billyrudi Active Member Licensed User

    Alain hi,
    there is a way to initilize a recursuve timer at root time?
    I have need to display generic informations or push informations.
    Regards Paolo
     
    joulongleu likes this.
  19. alwaysbusy

    alwaysbusy Expert Licensed User

  20. alwaysbusy

    alwaysbusy Expert Licensed User

    @billyrudi for questions, please start a new topic with [ABMaterial] in the subject. Thank you!

    You can use the normal timer in B4J I guess
     
    joulongleu and Erel like this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice