I have portainer installed. Its what I use.
OK... did you use docker-compose or a stack or what, how did you install airsonic?
I have portainer installed. Its what I use.
OK... did you use docker-compose or a stack or what, how did you install airsonic?
OK... did you use docker-compose or a stack or what, how did you install airsonic?
Stack
Stack
Perfect... Let me set this up real quick.. while I do that....
1. Go here... http://www.duckdns.org/
2. Login with your Gmail account, and create a subdomain. This will eventually make you access airsonic by https://airsonic.yoursubdomain.duckdns.org
When that's done, log in to your router and go to your port forwarding section.
Forward ports 81 (internal) to 80 (external), and port 444 (internal) to 443 (external) to your NAS IP address.
You're also going to need an SSH session open to complete this.
version: "2.2"
services:
swag:
image: ghcr.io/linuxserver/swag
container_name: swag
cap_add:
- NET_ADMIN
environment:
#- PUID=1000
#- PGID=100
#- URL=YOUR_SUBDOMAIN.duckdns.org
#- DUCKDNSTOKEN=YOUR_TOKEN
#- TZ=YOUR_TIMEZONE
- SUBDOMAINS=wildcard
- VALIDATION=duckdns
#- EMAIL=YOUR_EMAIL
volumes:
#- /path/to/config:/config
ports:
- 444:443
- 81:80
restart: unless-stopped
Alles anzeigen
Paste that into a Stack... Only lines you need to adjust are the ones that start with #, then erase the #. Your duckdns token... is on the page with your duckdns domain in the upper right.
Once you've adjusted everything, deploy the stack..
After the stack finishes deploying, in your SSH session
and watch the log... If you set up your port forwarding right, it should eventually tell you it successfully created a cert. If you get any message about checking an A record, or checking port forwarding, etc.. then it did't work. Use Cntrl C to exit the log back to prompt.
Once the cert is received, navigate to https://www.yoursubdomain.duckdns.org and if all went well, you should get the swag park page, and by the URL it should be secured with SSL (padlock).
Once you get that far, come back.
Alles anzeigenPerfect... Let me set this up real quick.. while I do that....
1. Go here... http://www.duckdns.org/
2. Login with your Gmail account, and create a subdomain. This will eventually make you access airsonic by https://airsonic.yoursubdomain.duckdns.org
When that's done, log in to your router and go to your port forwarding section.
Forward ports 81 (internal) to 80 (external), and port 444 (internal) to 443 (external) to your NAS IP address.
This what I see under port forwarding. Sorry had to step away before.
That looks like Port Triggering, not port Forwarding.
Edit: Can you scroll down and show the rules you set? that might be right.
Nevermmind... that's right.
So create a name for it (call it swag1)
External port is 80, internal is 81
Internal Host, is your Server IP
Protocol, should be Both
Save it, then repeat the same process... but name it swag2, with 444 as internal and 443 as external
Alles anzeigenNevermmind... that's right.
So create a name for it (call it swag1)
External port is 80, internal is 81
Internal Host, is your Server IP
Protocol, should be Both
Save it, then repeat the same process... but name it swag2, with 444 as internal and 443 as external
Thats done. I pasted into sack with corrections. In Putty after running the command its stuck on
[cont-init.d] 20-config: executing...
just give it a second, it takes it a sec to receive the key
Thats done. I pasted into sack with corrections. In Putty after running the command its stuck on
[cont-init.d] 20-config: executing...
You did paste it into a new stack right, not the same one as airsonic?
just give it a second, it takes it a sec to receive the key
You did paste it into a new stack right, not the same one as airsonic?
New stack
Now it says
New certificate generated; starting nginx
Starting 2019/12/30, GeoIP2 databases require personal license key to download. Please retrieve a free license key from MaxMind,
and add a new env variable "MAXMINDDB_LICENSE_KEY", set to your license key.
Edit: It finished. Server is ready.
Tried the link with my subdomain and it says site cant be reached
Alles anzeigenNew stack
Now it says
New certificate generated; starting nginx
Starting 2019/12/30, GeoIP2 databases require personal license key to download. Please retrieve a free license key from MaxMind,
and add a new env variable "MAXMINDDB_LICENSE_KEY", set to your license key.
Don't worry about that... does it say done now?
Don't worry about that... does it say done now?
Yes
Yes
OK, now check and see if swag is running (sounds like it is)
Go to https://www.yoursubdomain.duckdns.org and you should see the swag park page, look for the padlock up by your URL, indicating it is secured by SSL
If it tells you to accept a security risk, or something like that... something isn't right.
OK, now check and see if swag is running (sounds like it is)
Go to https://www.yoursubdomain.duckdns.org and you should see the swag park page, look for the padlock up by your URL, indicating it is secured by SSL
It says site cant be reached
It says site cant be reached
you are using https and using the subdomain you created with duckdns, right? does it match what you put in the swag stack?
you are using https and using the subdomain you created with duckdns, right? does it match what you put in the swag stack?
Yes subdomain is
Yes subdomain is
OK, I don't know what you're doing... I just clicked your link and it is showing your swag instance and it's secured.
OK, I don't know what you're doing... I just clicked your link and it is showing your swag instance and it's secured.
Then I guess its ok but on my machine ive tried chrome, firefox, incognito tabs and each time it says connection timed out
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!